Closed Bug 1772822 Opened 2 years ago Closed 1 year ago

Enable all storage Watchers on the server for all target types

Categories

(DevTools :: Storage Inspector, enhancement)

enhancement

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

This is about toggling all the following traits to true:
https://searchfox.org/mozilla-central/rev/4c3f6e8bf87fffb7c62feb4c76a14e0eb0b94c1f/devtools/server/actors/watcher/session-context.js#206-207,209-211
And stop using the legacy listener for all the storage resources.

They should work out of the box as they filter by WindowGlobalTargetActor.windows
and this should be correct for the ParentProcesTargetActor.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

It looks like this is all filtered by getAllBrowsingContextsForContext and isWindowGlobalPartOfContext
so it should only process the expected window globals.

remote=true wasn't quite the right check here.
This workaround here is rather around chrome <=> content boundaries.
When we load a URL that loads in the parent process (like about:devtools-toolbox),
this ignores remote=true and loads in parent, but type="content"
is still enforced and still prevent it from being listed in BrowsingContext.children.

Because of this the about:devtools-toolbox wasn't visible in the storage panel.

Blocks: 1578975
Depends on: 1811229

Comment on attachment 9311940 [details]
Bug 1772822 - [devtools] Fix reporting toolbox as a valid browsing context

Revision D166659 was moved to bug 1811229. Setting attachment 9311940 [details] to obsolete.

Attachment #9311940 - Attachment is obsolete: true
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/853cc7a03c53
[devtools] Enable server resource watcher for content-process storage types. r=devtools-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/5bd4441b15bc
[devtools] Enable server resource watcher for parent-process storage types. r=jdescottes,nchevobbe,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: