Closing the last private window wipes the persistent Alt-Svc cache
Categories
(Core :: Networking: HTTP, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: mail, Assigned: afucks)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 external file)
On last-pb-context-exited, nsHttpHandler::Observe calls AltSvcCache::ClearAltServiceMappings(), which calls nsIDataStorage::Clear(). In security/manager/ssl/data_storage/src/lib.rs, clear() empties the persistent, private and temporary tables and deletes AlternateServices.bin.
Fix: remove the ClearAltServiceMappings() call from the last-pb-context-exited branch and add a test that a persistent mapping survives the notification while a private one does not.
Comment 1•17 days ago
|
||
Great, in favor! Manuel and I were just talking about this when we saw that you already filed the bug.
Updated•16 days ago
|
| Assignee | ||
Updated•10 days ago
|
| Assignee | ||
Comment 2•9 days ago
|
||
The nsIDataStorage also listens to last-pb-context-exited and clears the
private storage. Clearing the alt-svc mappings in nsHttpHandler was
therefore redundant and removed more entries than necessary.
Comment 4•8 days ago
|
||
| bugherder | ||
Description
•