mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 07:30:47 +05:30
Updated Optional Hardening (markdown)
+1
-1
@@ -219,7 +219,7 @@ So why disable them? Service workers phone home to sites you've already closed,
|
||||
Service workers enhance a site rather than replace its core features, so if your browser doesn't support them, the site still works normally. On the very first visit to a web page that installs a new service worker, the initial visit to a page provides its baseline functionality while the service worker downloads. After a service worker is installed and activated, it controls the page to offer improved reliability and speed. (See [here](https://developer.chrome.com/docs/workbox/service-worker-overview/) and [here](https://firefox-source-docs.mozilla.org/devtools-user/application/service_workers/index.html)).
|
||||
|
||||
#### Option 1: Private Browsing only
|
||||
|
||||
There are cases where developers [want](https://bugzilla.mozilla.org/show_bug.cgi?id=1320796) the service workers API in private browsing windows.
|
||||
```javascript
|
||||
// PREF: disable service workers in Private Browsing windows
|
||||
user_pref("dom.serviceWorkers.privateBrowsing.enabled", false);
|
||||
|
||||
Reference in New Issue
Block a user