Closed Bug 1253009 Opened 8 years ago Closed 7 years ago

"Clear your recent history" does not clear Service Workers or their caches.

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1047098
Tracking Status
firefox47 --- affected

People

(Reporter: callahad, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: DevAdvocacy, privacy, Whiteboard: [DevRel:P2])

STR:

1. Visit https://www.pokedex.org/
2. Preferences -> Privacy -> Clear Your Recent History
3. Time Range: Everything, What: Everything except "Browsing & Download History"

What should happen:

- The service worker is unregistered
- All cached data is cleared

What actually happens:

- The service worker is still visible in about:serviceworkers
- All data cached by the service worker is still present

To verify that cached data persisted, visit https://www.pokedex.org/manifest.json and run the following in the console:

    caches.match('/img/icon-48.png').then(x => console.log(`Resource ${(x && x.ok) ? "WAS" : "WAS NOT"} found in cache:`, x))

Note: Selecting "Browsing & Download History" in the dialog does, surprisingly, unregisters the service worker (Bug 1253008). Caches remain even with every data option selected for clearing.
Blocks: 1253031
Component: Untriaged → Bookmarks & History
Whiteboard: [DevRel:P2]
Component: Bookmarks & History → General
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.