Fix duplicated call to thread actor method and avoid duplicated target front list in commands.js
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox105 fixed)
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
Details |
We store a duplicated list of target fronts in commands.js.
This duplicates the list already maintained in TargetCommand:
https://searchfox.org/mozilla-central/rev/9ad01b5eae48436e3bdb8df01be3973e683d5242/devtools/client/debugger/src/client/firefox/commands.js#388-398
This is even more confusing as the "current target" is using the TargetCommand's one:
https://searchfox.org/mozilla-central/rev/9ad01b5eae48436e3bdb8df01be3973e683d5242/devtools/client/debugger/src/client/firefox/commands.js#23-25
On top of this, this code is currently buggy and leads to call some thread actor methods twice for the top level target:
https://searchfox.org/mozilla-central/rev/9ad01b5eae48436e3bdb8df01be3973e683d5242/devtools/client/debugger/src/client/firefox/commands.js#99
| Assignee | ||
Comment 1•3 years ago
|
||
Instead we can fully rely on TargetCommand.
This fixes duplicated calls made to top level thread actor.
This was only happening with toolbox not using the Watcher Actor.
i.e. the non-multiprocess Browser Toolbox, Browser Content Toolbox and may be worker toolboxes from about:debugging.
Comment 2•3 years ago
|
||
The severity field is not set for this bug.
:bomsy, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•