Failed to register ServiceWorker when enabling cookies and site data autodelete.
Categories
(Core :: DOM: Service Workers, defect)
Tracking
()
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 :
-
Start with a new firefox profile.
-
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".
-
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.
Comment 1•5 years ago
|
||
Please search for existing bugs before filing new one (bug 1534750)
Comment 2•5 years ago
|
||
ignore my comment, you reported this first :-)
You are right it is a duplicate of bug 1413615. Sorry for not searching long enough.
Updated•5 years ago
|
Description
•