4 ms·
> Maybe we’ll see some innovation in this space from browsers in the future, where an app can identify itself as local only and then be sandboxed by the browser
by another-dave 5y ago
> Maybe we’ll see some innovation in this space from browsers in the future, where an app can identify itself as local only and then be sandboxed by the browser.
That would be a really cool 'HTML5' API — let the page do:
document.addEventListener('DOMContentLoaded', () => {
// some bootstrap
document.goOffline();
});
Which could prompt the user — "this web page wants to disable its own internet access. Do you want to continue? (Refresh the page to reload from server)[OK/Cancel]" — and then it can do longer use the internet & has its own storage which gets wiped before it's allowed back online.
Would allow all the benefits to devs of doing things in the browser (if that's their choice), & end-users could trust that it was truly offline.
- andi999 5y agoProbably this will end up like all the apps which ask for all kind of permissions they really don't need