Closed Bug 1534680 Opened 5 years ago Closed 5 years ago

Failed to register ServiceWorker when enabling cookies and site data autodelete.

Categories

(Core :: DOM: Service Workers, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1413615

People

(Reporter: wolduit, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

Steps to reproduce:

I'm using Firefox version 65.0.2 build 20190225143501. I was able to reproduce the bug on Firefox Nightly version 67.0a1 build 20190312095443.

How to reproduce :

  1. Start with a new firefox profile.

  2. In the options, go to "Privacy & Security" and, in the "Cookies and Site Data" category, enable "Delete cookies and site data when Firefox is closed".

  3. Try to access a website that uses ServiceWorker, for example https://send.firefox.com.

Result :
The service is not displayed and unusable. The console shows an error : "Failed to register/update a ServiceWorker for scope ‘https://send.firefox.com/’: Storage access is restricted in this context due to user settings or private browsing mode."

What should have happened?
The ServiceWorker should work regardless of my site data policy when firefox closes.

Additional information :
The option "Delete cookies and site data when Firefox is closed" seems to only change the configuration Network.cookie.lifetimePolicy from 0 to 2.

Please search for existing bugs before filing new one (bug 1534750)

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

ignore my comment, you reported this first :-)

You are right it is a duplicate of bug 1413615. Sorry for not searching long enough.

Component: Untriaged → DOM: Service Workers
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.