Bug 1594123 - Fix lookup of toolbarbutton-icon in TabsList r=mconley

document.getAnonymousElementByAttribute is dead code now, and even when it wasn't this would
have returned null ever since <toolbarbutton> stopped using XBL.

Differential Revision: https://phabricator.services.mozilla.com/D51727

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2019-11-05 18:22:38 +00:00
Родитель ba3386ca9b
Коммит cd409fbd97
1 изменённых файлов: 1 добавлений и 11 удалений

Просмотреть файл

@ -279,17 +279,7 @@ class TabsPanel extends TabsListBase {
_setImageAttributes(row, tab) {
let button = row.firstElementChild;
let image =
this.doc.getAnonymousElementByAttribute(
button,
"class",
"toolbarbutton-icon"
) ||
this.doc.getAnonymousElementByAttribute(
button,
"class",
"toolbarbutton-icon tab-throbber-tabslist"
);
let image = button.icon;
if (image) {
let busy = tab.getAttribute("busy");