by osrec · 4y ago · 0 comments
If you do not trust the developer of a web app, you can always disconnect from your Wi-Fi, use the app, close the tab and then reconnect to your Wi-Fi.
Web browsers don't come with such a firewall, and they need to be permitted by the system firewall to operate normally. It's technically possible to block outgoing requests with addons and configuration, but that's a pain to get right, especially compared to the simple toggle you can find in most OS firewalls.
For example: you enable throttling, upload a picture, that picture gets buffered by a serviceworker, you close the tab, therefore closing the dev tools and disabling the throttling you set up, and the serviceworker uploads whatever you resized to the server anyway.
Or: the application just tries to upload stuff whenever you open the page, turning the throttling solution into a race between you and your browser.
I don't think using dev tools intended to replicate offline-only behaviour are a good way to actually enforce offline-only behaviour.