News for hackers. Stuff that matters.
Re:How Browsers Work (2012) by octoberfranklin on Tuesday November 17, 2020 @06:11AM (#25122368)
How Browsers Work (2020): everybody just repackages Chromium.

...and Mozilla has some people dorking around with VR headsets.

Re:How Browsers Work (2012) by the_only_law on Tuesday November 17, 2020 @07:58AM (#25123195)
I've known a few people (including myself) who have casually thought about what it would take to write a new browser engine. Obviously it's a titanic undertaking and unrealistic project but one thing I considered recently:

There are a ton of new API's the browser has added since HTML5 giving all sorts of capabilities. Hell, Chrome can access USB devices on your host if you allow it permissions.

But is there a canonical list of all standardized web API's somewhere? Something that a browser engine developer could look at to decide what API's are must haves and what are optional.

Re:How Browsers Work (2012) by lucideer on Tuesday November 17, 2020 @09:45AM (#25124254)
> is there a canonical list of all standardized web API's somewhere

MDN[0] is probably the best list intended for this purpose, but it's easier to use if you already know what you're looking for.

While not explicitly its intent, I think caniuse[1] may be a better list for top-level browsing.

[0] https://developer.mozilla.org/en-US/docs/Web/API

[1] https://caniuse.com/ciu/index

Re:How Browsers Work (2012) by kaycebasques on Tuesday November 17, 2020 @11:55AM (#25126029)
See also browser-compat-data, the source data for Can I Use? and the Browser Compatibility tables at the bottom of MDN reference pages. I believe VS Code and other tools also rely on it.

https://github.com/mdn/browser-compat-data

Re:How Browsers Work (2012) by userbinator on Tuesday November 17, 2020 @09:37AM (#25124153)
I have also had that thought for a long time (nearly a decade), remember seeing this article and progressed beyond thought to start writing some code, but naturally have plenty of other things to work on, so it's been very slow going. I have in mind only something comparable to NetSurf or Dillo, but even that is not trivial.
Re:How Browsers Work (2012) by Tade0 on Tuesday November 17, 2020 @09:54AM (#25124352)
These guys:

https://www.ekioh.com/flow-browser/

Probably had to ask themselves the same question. Not sure if they have a published list though.

Re:How Browsers Work (2012) by swiley on Tuesday November 17, 2020 @08:17AM (#25123372)
That's what the documents the W3C maintains are supposed to be.
Re:How Browsers Work (2012) by kaycebasques on Tuesday November 17, 2020 @11:00AM (#25125283)
See also "Inside Look At Modern Web Browser" series: https://developers.google.com/web/updates/2018/09/inside-bro...

And "Anatomy Of A Frame": https://aerotwist.com/blog/the-anatomy-of-a-frame/

Also "Inside A Super Fast CSS Engine: Quantum CSS (AKA Stylo)": https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-en...

If you dig around chromium.org you can find lots of details about Chromium's guts, too.

Re:How Browsers Work (2012) by la_fayette on Tuesday November 17, 2020 @08:46AM (#25123637)
Is there any newer work on that matter published somewhere?
Re:How Browsers Work (2012) by dccoolgai on Tuesday November 17, 2020 @10:47AM (#25125081)
I must have read this 20 times. Great resource over the years... I've been looking for a newer version.
Re:How Browsers Work (2012) by 1vuio0pswjnm7 on Tuesday November 17, 2020 @06:10AM (#25122357)
This says Webkit uses flex and bison for HTML parsing.
Re:How Browsers Work (2012) by akling on Tuesday November 17, 2020 @08:33AM (#25123517)
It says it uses flex and bison for CSS parsing, which was true at the time of writing. It was replaced by a hand-written parser by Dave Hyatt in 2016.