Bug 1800417 - Fix the use of both toolbarbutton-1 and subviewbutton CSS classes in extension widgets. r=Itiel,mconley,dao,rpl

Depends on D169088

Differential Revision: https://phabricator.services.mozilla.com/D162712
This commit is contained in:
William Durand
2023-02-08 10:25:02 +00:00
parent 4468884513
commit 4cf5bc48b2
5 changed files with 398 additions and 101 deletions

View File

@@ -219,11 +219,7 @@ this.browserAction = class extends ExtensionAPIPersistent {
// Ensure the extension context menuitems are available by setting this
// on all button children and the item.
button.setAttribute("data-extensionid", extension.id);
button.classList.add(
"toolbarbutton-1",
"unified-extensions-item-action-button",
"subviewbutton"
);
button.classList.add("unified-extensions-item-action-button");
let contents = document.createXULElement("vbox");
contents.classList.add("unified-extensions-item-contents");