Bug 1777484 - Allow to close unified extensions panel programmatically. r=rpl,Gijs

I also tried to defer the loading of the panel when it is about to be
open for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D152401
This commit is contained in:
William Durand
2022-07-27 20:12:38 +00:00
parent eb5045e9f9
commit d8d83cbc65
5 changed files with 50 additions and 50 deletions

View File

@@ -680,4 +680,25 @@
onclick="ToolbarPanelHub.toggleWhatsNewPref(event)"
data-l10n-id="whatsnew-panel-footer-checkbox"/>
</panelview>
<panelview id="unified-extensions-view"
class="cui-widget-panelview PanelUI-subView"
flex="1">
<vbox class="unified-extensions-panel-header">
<html:h1 data-l10n-id="unified-extensions-header-title"/>
</vbox>
<toolbarseparator />
<vbox class="panel-subview-body unified-extensions-list">
<!-- active visible extensions go here -->
</vbox>
<toolbarseparator />
<toolbarbutton id="unified-extensions-manage-extensions"
class="subviewbutton panel-subview-footer-button unified-extensions-manage-extensions"
data-l10n-id="unified-extensions-manage-extensions"
oncommand="BrowserOpenAddonsMgr('addons://list/extension');" />
</panelview>
</html:template>