Closed Bug 1737100 Opened 3 years ago Closed 2 years ago

Pass down SessionData/context to target actors

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(firefox102 fixed)

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It would help to easily access to the related SessionData and/or WatcherActor's context from the target actor (and any of its children/resource watcher).
It would help for example know if we are in a browser toolbox context, or easily retrieve watcher's traits, ...

https://phabricator.services.mozilla.com/D128897?id=498275#inline-709043
https://phabricator.services.mozilla.com/D128897?id=498275#inline-709060

This helps better differentiates cases where we instantiate a target actor
with a watcher actor and possibly debug the whole browser and instantiate many targets.
Or when we instantiate only one target actor, like when we debug workers or xpcshell from about:debugging.
For now, in this case, there is no watcher actor involved and we manually instantiate the target from the descriptor.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/87afa7acff1a [devtools] Pass down sessionContext to all target actors. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: