Closed Bug 1567860 Opened 5 years ago Closed 5 years ago

Make the inspector destruction codepath synchronous

Categories

(DevTools :: Inspector, enhancement)

enhancement
Not set
normal

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(4 files)

See bug 1529621. This bug is dedicated to the Inspector and aims at getting rid of async on this particular method and all its dependencies:
https://searchfox.org/mozilla-central/rev/b9041f813de0a05bf6de95a145d4e25004499517/devtools/client/inspector/inspector.js#1562-1652

See Also: → 1568150

See these two patches, but it looks like nothing is really async in inspector panel destruction codepath:

If we combine these two patches we should be able to make the inspector destroy fully synchronous.

Blocks: 1568151
Assignee: nobody → poirot.alex

This code in ToolSidebar.destroy looks dead as there shouldn't be any sidebar
loaded in distinct iframes anymore. So we are not trying to call sidebars destroy
from here anymore. Instead, it is being done from Inspector.destroy, via the _panels
Map.

The fronts are destroyed when the toolbox closes and when a front is destroyed,
all its listeners are removed. So there is no real value in trying to unregister
them. On top of that, this destroy method is called by Inspector.destroy
and doesn't wait for its completion.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/321fa237ca12
Make the markup view destroy codepath synchronous. r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/805fcf84f6ea
Make the inspector sidebars destroy codepath synchronous. r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/9c097465b2df
Make changes view destroy codepath synchronous. r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/72b39fc80987
Make inspector panel's destroy synchronous. r=rcaliman
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: