Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I still need to test rendering in both Chrome and Safari if they both use Webkit?

Tags:

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.

like image 217
gary Avatar asked Nov 15 '10 04:11

gary


People also ask

Does Google Chrome use WebKit?

Google Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. It was later ported to Linux, macOS, iOS, and Android, where it is the default browser.

Do Safari and Chrome use the same engine?

You may not realise that all browsers on iOS are required to use the same rendering engine as Safari. On other platforms, this is not the case. Take, for example, Chrome. On Android, Windows and even macOS, they are using the Chromium rendering engine.

Is WebKit the same as Safari?

WebKit is used as the rendering engine within Safari and was formerly used by Google's Chrome web browser on Windows, macOS, and Android (before version 4.4 KitKat).

Does Chrome on macOS use WebKit?

On the iOS platform, Apple requires every browser to run on WebKit. Even Google Chrome is forced to use WebKit on iOS devices.


1 Answers

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.

like image 141
Ben Lee Avatar answered Oct 25 '22 04:10

Ben Lee