Re:LANDrop – Drop any files to any devices on your LAN
by z3t4 on Friday August 25, 2023 @04:17AM
(#37259340)
I think there should be three modes, one mode for documents and two modes for apps. Right now the document "mode" is too overpowered while the "app mode" is under-powered. If the user switches to "app mode" it should give the website access to the web API's, while in document mode it should only be possible to manipulate the DOM. The second app mode should make the app more "native" like and unlock more API's. Or we should just fork the browser into two programs, one for documents and one for app runtime.
The reason we're generally "paranoid" about running arbitrary code in the browser is that every fucking website wants to run arbitrary code in the browser, not because an app that actually has a reason to do it, does.
A website should just be a document when it is just a document, which is 95%+ of the content linked on HN.