Closed Bug 1604491 Opened 6 years ago Closed 6 years ago

Rename DevTools "custom" host to "browsertoolbox" host

Categories

(DevTools :: Framework, task, P3)

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(4 files)

From a discussion in the review of Bug 1603361:
https://phabricator.services.mozilla.com/D56989#inline-348984

We currently support a "custom" host in DevTools. In production code, this is only used when creating a Browser Toolbox. https://searchfox.org/mozilla-central/source/devtools/client/framework/browser-toolbox/window.js#198

We can rename this host to "browsertoolbox", and thanks to that:

  • add a isBrowserToolbox getter on toolbox that simply checks the host type
  • move some of the complexity handed in browser-toolbox/window.js to the host

https://searchfox.org/mozilla-central/source/devtools/client/framework/browser-toolbox/window.js

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Only renaming methods/variables/files here.

Depends on D58235. Move browsertoolbox host logic directly to browsertoolbox host

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b5d7f11748dd Rename CUSTOM DevTools host to BROWSERTOOLBOX r=ochameau https://hg.mozilla.org/integration/autoland/rev/27f73ed7222f Implement host raise/setTitle for browsertoolbox host r=ochameau https://hg.mozilla.org/integration/autoland/rev/c7f8433f168f Remove Toolbox::setBrowserToolbox, use host type to check if BrowserToolbox r=ochameau https://hg.mozilla.org/integration/autoland/rev/ad5d17f68cde Additional cleanup in browser-toolbox/window.js r=ochameau
Blocks: 1607754
Regressions: 1611099
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: