IndexedDB and Cache not showing stores if created after the storage panel is open
Categories
(DevTools :: Storage Inspector, defect, P2)
Tracking
(Not tracked)
People
(Reporter: ladybenko, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
When inspecting the storage of a page, if it the page creates a database or stores new data into the cache, these stores will not show up in the storage tree.
STR (indexedDB)
- Clear any stored local data (Preferences / Privacy & Security / Cookies and Site Data / Clear data)
- Go to about:home or any other website
- Open toolbox and the storage panel
- Navigate to http://canonical.org/~kragen/sw/dev3/idb.html
Expected results:
- A database should appear under the canonical.org host
Actual results:
- There is no store under that host
Similar STR for Cache storage, but visiting https://serviceworke.rs/strategy-cache-only_demo.html
Note that if we open the toolbox once those stores have been created, it will work as usual.
Reporter | ||
Comment 1•3 years ago
|
||
In the actor, for those resources we are reading and populating the tree with stores when:
- There's a call to
preListStores
(we are doing it when we create the storage actor, but that is usually too early and won't detect newer additions) - As part of the
onWindowReady
callback
For parent process resources (indexedDB) we are not emiting fake window-ready
events, so only the initial call to preListStores
is made. For content process resources (Cache) we do emit a fake window-ready
but when we enable server side target switching there might be a race condition here.
We could force to read and populate the tree when the host is selected and we click the refresh button.
Updated•3 years ago
|
Updated•8 months ago
|
Description
•