如果他们都使用Webkit,我还需要在Chrome和Safari中测试渲染吗? [英] Do I still need to test rendering in both Chrome and Safari if they both use Webkit?

查看:126
本文介绍了如果他们都使用Webkit,我还需要在Chrome和Safari中测试渲染吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有必要在Chrome和Safari中测试我的网站呈现情况,尽管这两个浏览器都在下面实现了Webkit呈现引擎?

这是由开发人员或有效假设作出的警察吗?



我特别询问我的网页是否会在两个浏览器中呈现相同的效果,以及我的Javascript是否可以在两种浏览器中使用。

解决方案

有一些细微的差异,所以我会在两者中进行测试。例如:


  • 默认情况下,Safari禁用了第三方Cookie,但Chrome默认启用了它们。

  • Safari不会在DOM中存储< noscript> 内容,Chrome不会为Chrome浏览器窗口保留每个浏览器窗口它自己的操作系统进程(多进程模型)。 Safari在一个进程中保留所有窗口。 [注意:即将推出的WebKit2将支持内置的多进程模型]。

  • Chrome使用V8 javascript引擎,Safari使用Nitro。



我知道我遇到的其他一些差异,但我不记得他们的头顶。如果发生在我身上,我会更新这篇文章。


Is it necessary to test the rendering of my website in both Chrome and Safari despite the fact that both browsers implement the Webkit rendering engine underneath?

Is this a cop out by developers or a valid assumption to make?

I am specifically asking about whether the pages of my website will render the same in both browsers and whether my Javascript will work in both browsers.

解决方案

There are some slight differences, so I would test in both. Some examples:

  • By default Safari has 3rd-party cookies disabled, but Chrome has them enabled by default.
  • Safari does not store <noscript> content in the DOM, Chrome does
  • Chrome keeps each browser window sandboxed in its own operating system process (multi-process model). Safari keeps all windows in one process. [Note though: The upcoming WebKit2 will have support for the multi-process model built in].
  • Chrome uses the V8 javascript engine, Safari uses Nitro.

I know there a few other differences I have encountered, but I can't remember them off the top of my head. I'll update this post if any occur to me.

这篇关于如果他们都使用Webkit,我还需要在Chrome和Safari中测试渲染吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆