Re:Kosmonaut: web browser from scratch in Rust
by rini17 on Saturday August 15, 2020 @05:22PM
(#24172514)
This won't do, from the myriad issues I'll pick one: you might encounter an unsupported feature seconds into page loading, or even later, after user already entered some data.
Re:Kosmonaut: web browser from scratch in Rust
by gix12 on Saturday August 15, 2020 @05:53PM
(#24172751)
That is if you allow dynamic code loading or such dom manipulation to allow it. But for such cases, you should have already started the fallback engine the first time you scanned through the website code.
But fair enough. In the wild you would have to use fallback pretty much always.
Still, webassembly-able gecko would be handy and would allow for experimenting with above mentioned streamlined 'web standard'. Web author could simply sign it's compliance to the 'standard' using meta tags, http headers or some other way.
Taking it further - the website author could possibly specify rendering engine it prefers to be rendered with(as specific version could simply be downloaded on demand from cdn, like common js/css libraries are). And pure webassembly apps (ie flutter) could skip the html/css/js bloat altogether.