Bug 1690351 - Create a Proton-specific More Tools panel. r=jdescottes,mconley,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D104249
This commit is contained in:
Micah Tigley
2021-02-10 15:21:58 +00:00
parent e921c686e9
commit e2ada69a69
4 changed files with 80 additions and 26 deletions

View File

@@ -380,6 +380,22 @@ const PanelUI = {
this.multiView.showSubView("PanelUI-helpView", aAnchor);
},
/**
* Switch the panel to the "More Tools" view.
*
* @param moreTools The panel showing the "More Tools" view.
*/
showMoreToolsPanel(moreTools) {
this.showSubView("appmenu-moreTools", moreTools);
// Notify DevTools the panel view is showing and need it to populate the
// "Browser Tools" section of the panel. We notify the observer setup by
// DevTools because we want to ensure the same menuitem list is shared
// between both the AppMenu and toolbar button views.
let view = document.getElementById("appmenu-developer-tools-view");
Services.obs.notifyObservers(view, "web-developer-tools-view-showing");
},
/**
* Shows a subview in the panel with a given ID.
*