Port 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
This commit is contained in:
Родитель
8b0e7e99f3
Коммит
27de0a4346
|
@ -291,7 +291,7 @@ class PageAction {
|
|||
}
|
||||
|
||||
_createElementAndAppend({type, id}, parent) {
|
||||
let element = this.window.document.createElement(type);
|
||||
let element = this.window.document.createXULElement(type);
|
||||
if (id) {
|
||||
element.setAttribute("id", id);
|
||||
}
|
||||
|
@ -397,7 +397,7 @@ class PageAction {
|
|||
stepsContainer.remove();
|
||||
stepsContainer = stepsContainer.cloneNode(false);
|
||||
} else {
|
||||
stepsContainer = this.window.document.createElement("vbox");
|
||||
stepsContainer = this.window.document.createXULElement("vbox");
|
||||
stepsContainer.setAttribute("id", stepsContainerId);
|
||||
}
|
||||
footerText.parentNode.appendChild(stepsContainer);
|
||||
|
|
|
@ -64,6 +64,7 @@ describe("CFRPageActions", () => {
|
|||
PrivateBrowsingUtils: {isWindowPrivate: sandbox.stub().returns(false)},
|
||||
gBrowser: {selectedBrowser: fakeBrowser},
|
||||
});
|
||||
document.createXULElement = document.createElement;
|
||||
|
||||
elements = {};
|
||||
const [body] = document.getElementsByTagName("body");
|
||||
|
|
Загрузка…
Ссылка в новой задаче