Closed Bug 1304297 Opened 8 years ago Closed 8 years ago

Cache storage can't be deleted in the storage panel

Categories

(DevTools :: Storage Inspector, defect, P2)

defect

Tracking

(firefox52 verified)

RESOLVED FIXED
Firefox 52
Tracking Status
firefox52 --- verified

People

(Reporter: pbro, Assigned: jsnajdr)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

See this tweet: https://twitter.com/MoOx/status/778474272427745280
We have implemented delete in the storage panel for several storage types, but not for Cache storage yet. As a result it's not possible to clear the items put in cache by a service worker.

This require implementing the right actor delete method, and adding the right context menus in the UI to allow for deletion.
Keywords: good-first-bug
Priority: -- → P2
Whiteboard: [lang=js]
FWIW, it would be nice to have delete at the Request/Response level and also at the Cache object level.
Assignee: nobody → jsnajdr
Added support for:
- deleting cache Response objects from the storage table
- deleting Cache objects from the storage tree
- "delete all" - clear all responses in a Cache, in both tree and the table

In the frontend, I renamed the "removeDatabase" method (and the menu items) to more general "removeTreeItem", as it can remove Caches now, too.

This means that the delete support in Cache is complete - everything deletable can be deleted now :)
Comment on attachment 8793709 [details]
Bug 1304297 - Support for deleting Cache and Response objects in Storage Inspector

https://reviewboard.mozilla.org/r/80406/#review79046

Great work... and really fast.

We should run this through try before we land it though.
Attachment #8793709 - Flags: review?(mratcliffe) → review+
Pushed by jsnajdr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9c437117dafa
Support for deleting Cache and Response objects in Storage Inspector r=miker
https://hg.mozilla.org/mozilla-central/rev/9c437117dafa
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
[bugday-20170215]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: