Open Bug 1712757 Opened 3 years ago Updated 8 months ago

IndexedDB and Cache not showing stores if created after the storage panel is open

Categories

(DevTools :: Storage Inspector, defect, P2)

defect

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.

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.

Severity: -- → S3
Priority: -- → P2
See Also: → 1735335
Attachment #9387632 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: