Closed Bug 1691682 Opened 3 years ago Closed 3 years ago

Destroy target list at the end of Toolbox destroy

Categories

(DevTools :: Framework, task, P3)

task

Tracking

(firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I would like to keep Bug 1691661 open to discuss the potential defects highlighted there. In the meantime, I think it should be safe to at least move the targetList.destroy next to the target.destroy in the toolbox destroy.

This way, all pending initializations and cleanup should be done.
We keep unwatchTargets/unwatchResources calls at their current spot in order to still stop client-side activity related to targets/resources as soon as possible.

Blocks: 1690698

This is a partial fix for the issues highlighted in 1691661.
It should reduce the risk of race conditions during DevTools Toolbox destroy.

The race condition it fixes involves fronts which stop resolving requests after their corresponding remote frame target was destroyed.
See Bug 1691661 for more details.

Whiteboard: dt-fission-m3-triage
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3ac901ba324e
[devtools] Destroy target list at the end of Toolbox destroy r=ochameau
Whiteboard: dt-fission-m3-triage
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: