Bug 1485147 - Fix app menu for browser.xhtml. r=bgrins

The XUL elements were not being created because of the wrong createElement
call.

MozReview-Commit-ID: 54RqUJQAqHq

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brendan Dahl 2018-08-22 17:04:52 +00:00
Родитель dfb39f81d3
Коммит 4b4b2327fe
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -367,18 +367,18 @@ var PanelMultiView = class extends AssociatedToNode {
PanelMultiView.ensureUnloadHandlerRegistered(this.window);
let viewContainer = this._viewContainer =
this.document.createElement("box");
this.document.createXULElement("box");
viewContainer.classList.add("panel-viewcontainer");
let viewStack = this._viewStack = this.document.createElement("box");
let viewStack = this._viewStack = this.document.createXULElement("box");
viewStack.classList.add("panel-viewstack");
viewContainer.append(viewStack);
let offscreenViewContainer = this.document.createElement("box");
let offscreenViewContainer = this.document.createXULElement("box");
offscreenViewContainer.classList.add("panel-viewcontainer", "offscreen");
let offscreenViewStack = this._offscreenViewStack =
this.document.createElement("box");
this.document.createXULElement("box");
offscreenViewStack.classList.add("panel-viewstack");
offscreenViewContainer.append(offscreenViewStack);
@ -1212,10 +1212,10 @@ var PanelView = class extends AssociatedToNode {
return;
}
header = this.document.createElement("box");
header = this.document.createXULElement("box");
header.classList.add("panel-header");
let backButton = this.document.createElement("toolbarbutton");
let backButton = this.document.createXULElement("toolbarbutton");
backButton.className =
"subviewbutton subviewbutton-iconic subviewbutton-back";
backButton.setAttribute("closemenu", "none");
@ -1228,7 +1228,7 @@ var PanelView = class extends AssociatedToNode {
backButton.blur();
});
let label = this.document.createElement("label");
let label = this.document.createXULElement("label");
label.setAttribute("value", value);
header.append(backButton, label);