Closed Bug 1696020 Opened 2 years ago Closed 1 month ago

Disabling service workers in about:config does not disable or unregister active service workers

Categories

(Core :: DOM: Service Workers, defect)

Firefox 86
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1645054
Tracking Status
firefox-esr78 --- affected
firefox86 --- affected
firefox87 --- affected
firefox88 --- affected

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.

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Version: 78 Branch → Firefox 86
Summary: Disabling service workers in about:config does not disable active service workers → Disabling service workers in about:config does not disable or unregister active service workers

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?

  1. Open the browser.
  2. Go to about:config and flip dom.serviceWorkers.enabled to true (default)
  3. Load https://serviceworke.rs/push-simple_demo.html
  4. Click the "Try to conquer Italy!" button (no page loading involved)
    Observe: Notification is displayed.
  5. Go to about:config and flip dom.serviceWorkers.enabled to false
  6. Focus the previously test page loaded in step 3 (do not refresh)
  7. Click the "Try to conquer Italy!" button (no page loading involved)
    Actual: displays a notification
    Expected: does not display a notification

Thanks!

Flags: needinfo?(lucastronks)

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.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Service Workers
Ever confirmed: true
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → Desktop

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.

Flags: needinfo?(lucastronks)
Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1645054
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.