Not only do you have to support an insane amount of standards, you need to do it fast. Firefox and Chromium are optimized so much for speed, and nobody will use your web browser if it’s slow or uses up tons of ram.
Or has no support for any addons
Chrome is in its way to that!
uses up tons of ram
In my experience, Chrome is a RAM hog. I use FF. Are other browsers even worse with RAM use than Chrome?
It’s the websites that requires all the memory, the browser can’t magically take less memory than what a website demands.
Because it’s super complicated and a thousand moving parts are involved. You have to parse HTML, draw everything correctly, do JavaScript, Canvases, WASM, Websockets, HTTP 1.0, 1.1, 2.0, SPDY, support 10 different image formats, 5 audio, 5 video formats, allow videoconferencing, write a plug-in system. Handle Bookmarks, History, File downloads, uploads, … … …
The standards alone are thousands of pages. You gotta read them all, understand them and program everything. Which takes years for a team of developers. And you also want it secure or your users get in all sorts of trouble. A browser is the number 1 way to get malware on your computer. And all these experts take a decent salary. Multiply that (hourly) wage with multiple people and several years and you’ll end up with an expensive product.
Don’t forget the fully fledged remote desktop thats built in, WebVR (which is being replaced with Web XR), Web Bluetooth, Web USB (aka Web Serial), the API’s for notifications, ambient light sensors, an entire transactional database (indexed DB), the language translation API, the Gamepad API (videogame controllers), hardware passkeys (yubikey), speech to text, text-to-speech, webGL, webGPU, webworkers, service workers, an entire suite of cryptography tools, GPS location, battery, vibration, FileSystem API, picture-in-picture API, WebRTC, WebSensors, etc.
And then, on top of all that, building a miniture OS-kernel so that tasks can be sandboxed scheduled/executed and prevent 1 tab from crashing everything or hogging resources.
And despite all that, if you don’t bend over to emulate Chrome’s quirks a ton of sites still won’t work properly and users won’t use your browser because the other one is more “compatible”. And you might still have to fake your user agent to be Chrome or Firefox so sites will even give you the fancy HTML instead of giving you the mobile or “limited” version meant for IE and older browsers.
I hate the fact that the only viable choice is between Chromium, Chromium, Chromium, Chromium, Chromium or Firefox.
There are a decent amount of third party browsers. Many of them, to make things easier, encapsulate a chromium engine, but there is still the entirety of the user interface, options, customizability and additional browsing enhancements that make the experience vastly different and that’s really what most people are looking for. Give some other ones a try now and then, you might surprise yourself and find something that really does just what you want the way you like. It happens.
Currently using LibreWolf on desktop and Mull on android (both Firefox / gecko based) and I am happy with them :)
They’re basically as complex as operating systems these days.
You need to implement several huge standards in order to get relatively simple modern sites to load
Fun fact: chromium has about 1.5 million more lines of code than the Linux kernel (about 32mil vs about 30.5mil), not including whitespace/docs/etc.
It is however also worth noting that lines of code is a not great metric for complexity
But yes, as a casual comparison it’s interesting
IIRC, even KDE and their whole suite of apps are dwarfed by the LOC count of browser (forgot if it is firefox or chromium)
You can take a quick look at the W3C standard. Primarily at the page length.