Hacker News new | ask | show | jobs
by culi 670 days ago
There's a lot more to a browser than the JS engine. And in general, we would want all of the browsers JS engines to be essentially the same. I think starting with an existing engine is the most logical approach
3 comments

> we would want all of the browsers JS engines to be essentially the same

You say until there is a CVE found.

True but at this point of time, Firefox and Servo are using the same CSS engine, same JS engine and same compositor and rendering engine.
That still leaves you with at least the layout engine, all the DOM apis, all the networking, multi process model & sandboxing, web extensions support, that are different implementations.
They plan to abstract it (work is underway) to make it even possible to use chromium's js engine. https://www.phoronix.com/news/Servo-JavaScript-Engine-Modula...
Interesting. Kinda reminds me of the 360 Safe browser that's one of the most popular browsers used in China. It can render a website using WebKit, Blink, or Trident (Internet Explorer)
It's not about including multiple web engines (like e.g. Sleipnir does) but multiple JS engines in a single web engine.