consider allowing service workers when cookie policy is "keep until I close firefox"
Categories
(Core :: DOM: Service Workers, defect, P3)
Tracking
()
People
(Reporter: lists, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
|
15.33 KB,
text/plain
|
Details |
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Updated•8 years ago
|
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
Comment 17•6 years ago
|
||
:asuth, can you clarify the relation to bug 1429714 (which might not be resolved completely, yet) ?
Comment 18•6 years ago
|
||
Hello, we have found that the issue is still present when "Delete cookies and site data when Firefox is closed" is enabled, we see "This operation is insecure" errors.
Comment 19•5 years ago
|
||
Please change "Delete cookies and site data when Firefox is closed" to "Delete cookies and Service Workers data when Firefox is closed"
Allow service workers while using Firefox even if "Delete cookies and Service Workers data when Firefox is closed" is checked.
When we exit Firefox clear cookies and service workers if "Delete cookies and Service Workers data when Firefox is closed" is checked.
Comment 20•5 years ago
|
||
@jstutte is anyone looking into this? this has been open for 3 years
Updated•5 years ago
|
Comment 21•4 years ago
|
||
Pretty sad that "delete cookies when I close firefox" disables service workers without warning. I certainly didn't expect that, until I noticed the error in the log and searched on the text. I wouldn't expect a setting with that name to disable anything, only to delete cookies when I exit Firefox. I wrote a fine service worker some years ago in test mode, and now that I'm trying to deploy it, I run into this issue. So in retesting, it seems that it works when I set the exception for my deployment site, for a while. And then it vanishes. The service worker is accessing the IDB and allowing off-line access to cached things, and that seemed to work for a while after breaking the internet connection, but then it quit, and the service worker vanished.
I do agree that many users think there is no difference between a cookie, local storage, IDB storage, but rather than coddle their ignorance, the settings should have a set of check boxes regarding what gets deleted when exiting: then they'd learn that something other that cookies exist, and learn how to deal with them. And it certainly shouldn't disable the service workers, without an explicit checkbox for that.
Comment 22•4 years ago
|
||
The ability to wipe the storage is no longer a concern as it's been abstracted over in Sanitizer.jsm. The primary limiting factor at this time is the UX around clearing data at shutdown, which is unfortunately that Firefox silently can take a very long time depending on the I/O speed of the device the profile is stored on and how much data there is to be stored. This shutdown can impede re-launching Firefox and potentially trip the watchdog timer if the shutdown takes long enough. For sites like slack.com, we expect that site to cache 300 MiB+ of data across many small individual files.
I've filed bug 1756724 on having a data clearing progress dialog at shutdown (which would stop the watchdog timer too).
Note that it's also possible to try and accelerate shutdown by some combination of:
- Trying to store smaller Response bodies inline in the Cache API database as blobs. The theory here would be that the filesystem would have an easier time of deletion since it'd just be deleting a single database with a lot of pages. For spinning disk media, we'd likely want to set the maximum inlined blob size close to the SQLite page size (which could mean raising the page size) or we'd risk fragmentation-based performance regressions compared to the single-shot append-only file writes we currently use.
- Moving to encrypted storage with the privacy model that we forget the key at shutdown but not blocking Firefox shutdown/restart (which could involve handing off actual deletion to a daemon helper).
- Auditing the deletion calls actually being made.
Updated•3 years ago
|
Comment 23•3 years ago
|
||
[ Quote Glenn Linderman @ CE 2021-12-12 07:11 UTC:
https://bugzilla.mozilla.org/show_bug.cgi?id=1413615#c21
Pretty sad that "delete cookies when I close firefox" disables service workers without warning. ]
<^> "Delete browsing data on quit" at the moment (version 115) doesn't seem to cause which.
Comment 24•2 years ago
|
||
I've hit this bug, too.
Backreference: https://github.com/webcompat/web-bugs/issues/126555
Comment 25•2 years ago
|
||
@abma: Your test case works since version 103 (Bug 1681495).
Comment 26•1 year ago
|
||
(In reply to Kestrel from comment #25)
@abma: Your test case works since version 103 (Bug 1681495).
Thanks for checking and testing this. I think there was also relevant work in bug 1764761 that removed StorageAccess::eSessionScoped but the configuration changes in bug 1681495 indeed preceded that and changed ServiceWorkers to no longer see that (unsupported) value.
Description
•