Open Bug 1725623 Opened 3 years ago Updated 3 years ago

Investigate possible breakage because of erroneous usage of DevToolsFrameChild _getTargetActorForWatcherActorID/_findTargetActor


(DevTools :: Framework, task)



(Not tracked)


(Reporter: nchevobbe, Unassigned)



(Whiteboard: dt-fission-future)

We are using the _getTargetActorForWatcherActorID [1] (renamed to _findTargetActor in Bug 1724909) function of DevToolsFrameChild in a few places (e.g. _(add|remove)WatcherDataEntry, …) to retrieve a single target matching a given (browserId, watcherActorId) pair.
The issue is that we can have multiple targets for a given (browserId, watcherActorId), as highlighted by the TargetActorRegistry code ([2]).

This is the case for example if you have a document (e.g. on having multiple iframes sharing the same origin (e.g.
In such case, we would communicate only with the first target we get and potentially miss some data from the other targets.

We should investigate this code, check cases where it fails, and fix it properly.


See Also: → 1699676
You need to log in before you can comment on or make changes to this bug.