Closed Bug 1504706 Opened 6 years ago Closed 6 years ago

Call Toolbox.destroy instead of gDevTools.closeToolbox when using having a toolbox object around

Categories

(DevTools :: Framework, enhancement, P3)

enhancement

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

A couple of places:
https://searchfox.org/mozilla-central/search?q=gDevTools.closeToolbox&case=false&regexp=false&path=
are calling `gDevTools.closeToolbox(target)`, whereas they are having a `toolbox` object offhand. Instead they can simply call `toolbox.destroy()` as gDevTools.closeToolbox is just an alias to it:
https://searchfox.org/mozilla-central/source/devtools/client/framework/devtools.js#586
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6e2b400168a
Call toolbox.destroy instead of going throught gDevTools.closeToolbox. r=yulia
https://hg.mozilla.org/mozilla-central/rev/e6e2b400168a
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: