Disabling service workers in about:config does not disable or unregister active service workers
Categories
(Core :: DOM: Service Workers, defect)
Tracking
()
People
(Reporter: lucastronks, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Test if a compatible website gives you a notification when the website is not loaded.
This indicates a service worker is active and working. Go into about:config and set dom.serviceWorkers.enabled to false.
Test if you can still receive notifications from the website, the one that previously registered a service worker, while the it is not loaded.
Actual results:
You will still receive notifications from the website as the service worker is somehow still active.
Expected results:
You will not receive notifications from the website as the previously registered service worker functionality should have been disabled when you changed dom.serviceWorkers.enabled to false.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
I would like to confirm your issue, so I need to ask:
- How exactly do you confirm that a compatible website gives you a notification when it is not loaded?
- Also, can you provide an example of a compatible website? Does this work?
Is this the exact action path you took?
- Open the browser.
- Go to about:config and flip dom.serviceWorkers.enabled to true (default)
- Load https://serviceworke.rs/push-simple_demo.html
- Click the "Try to conquer Italy!" button (no page loading involved)
Observe: Notification is displayed. - Go to about:config and flip dom.serviceWorkers.enabled to false
- Focus the previously test page loaded in step 3 (do not refresh)
- Click the "Try to conquer Italy!" button (no page loading involved)
Actual: displays a notification
Expected: does not display a notification
Thanks!
Comment 2•2 years ago
|
||
Considering the fact that I believe I understood the reporter correctly and reproduced the steps described above, I will confirm this issue and let developers decide whether this is really an issue or actually not valid.
Comment 3•8 months ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit auto_nag documentation.
Updated•1 month ago
|
Description
•