Prevent TargetCommand from notifying about new target that are already destroyed
Categories
(DevTools :: Framework, defect)
Tracking
(firefox88 fixed)
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(2 files)
When trying to run devtools/client/framework/test/browser_toolbox_backward_forward_navigation.js test with patches from bug 1631451,
the test often fails with fission enabled because various onTargetAvailable function get called with an already destroyed target front.
This happens because the target is destroyed while TargetComment await for target attach and initialize thread front.
https://searchfox.org/mozilla-central/source/devtools/shared/commands/target/target-command.js#165-181
We should check that before calling emitAsync and call all the onTargetAvailable, that the target front is still usable.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
This helps browser_toolbox_backward_forward_navigation.js passing with fission enabled.
Assignee | ||
Comment 2•3 years ago
|
||
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/55166c719cd2 [devtools] Avoid notifying about already destroyed targets from TargetCommand. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/0d9035ed5c50 [devtools] Avoid a few cases where targetFront is null during a client side target switching. r=nchevobbe
Comment 4•3 years ago
|
||
Backed out for causing devtools and xpcshell failures.
Failure logs:
https://treeherder.mozilla.org/logviewer?job_id=333573797&repo=autoland
https://treeherder.mozilla.org/logviewer?job_id=333573618&repo=autoland
Backlout link: https://hg.mozilla.org/integration/autoland/rev/0f098000e0e79fbe1b1f4542de062b7429454d49
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b791ebfc50aa [devtools] Avoid notifying about already destroyed targets from TargetCommand. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/cfa1cd1f0ad0 [devtools] Avoid a few cases where targetFront is null during a client side target switching. r=nchevobbe
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b791ebfc50aa
https://hg.mozilla.org/mozilla-central/rev/cfa1cd1f0ad0
Assignee | ||
Updated•3 years ago
|
Description
•