5 ms·
Are you saying JS could modify the CSP policy or meta tag after page load? Suddenly I'm thinking it would be very cool to be able to right-click on a tab and s
by blitmap 6y ago
Are you saying JS could modify the CSP policy or meta tag after page load?
Suddenly I'm thinking it would be very cool to be able to right-click on a tab and say 'Take Tab Offline'
Imagine if it was like a toggle on the tab itself like muting sound from a tab. It would instruct the browser to isolate the tab/process from the network? I'm not sure how Web Workers play into this.
- dylz 6y agoYou have no guarantee that the server won't just "if (ip === companyName) { don't serve CSP + serve infiltrated JS }" in the future.
- blitmap 6y agoI mean you could absolutely inspect the source for the page, but these things could be modified at runtime by JS, right? I'm talking about the meta tags. It would be neat to have a toggle on the tab for isolating the content of the page from the network.
- ijpsud 6y agoYou'd have to restrict localstorage and stuff like that too, else they could save data and then send it when they regain network access. If you have a use-case, or some ideas, there's Chrome bug page for "offline-only PWAs": https://bugs.chromium.org/p/chromium/issues/detail?id=995236 https://bugs.chromium.org/p/chromium/issues/detail?id=995236