ProcessDescriptorActor isn't passing its browsingContext when creating its WatcherActor
Categories
(DevTools :: Framework, defect, P1)
Tracking
(firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(1 file)
The WatcherActor
does have specific code to handle watching resources in parent process (devtools/server/actors/descriptors/watcher/watcher.js#188-200), by retrieving the browsingContextID
from the browser
option passed when instantiating it (devtools/server/actors/descriptors/watcher/watcher.js#35,57-59).
Unfortunately, in devtools/server/actors/descriptors/process.js#145, we're creating the WatcherActor
for the ProcessDescriptorActor
without the browser
option, which means the watcherActor won't be able to retrieve the targetActor.
As a result, we won't watch resources in parent processes (you can see that by flipping the [Resources.TYPES.CONSOLE_MESSAGE]
trait, opening the browser toolbox and evaluating console.log("bloup")
; the bloup
message won't appear).
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
The WatcherActor already has code to handle ParentProcessTargetActor, but since
the browsing context wasn't passed to the watcher actor when we were creating
it in the ProcessDescriptorActor, nothing was done (and we weren't watching
for resources on that target).
This patch fixes that, and also changes what the WatcherActor expects. It used
to take a whole browser
object, but was only using it to retrieve the
browsing context id, so directly passing the id seems more straightforward.
Depends on D79294
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Description
•