Bug 1462798 - Create a base custom element class that shares the parseXULToFragment helper;r=Paolo

MozReview-Commit-ID: IG84xKxO9Wc
This commit is contained in:
Brian Grinstead
2018-05-19 13:56:06 -07:00
parent 7e3e553609
commit 07e20adba7
10 changed files with 128 additions and 11 deletions

View File

@@ -84,12 +84,8 @@ MainProcessSingleton.prototype = {
const doc = subject;
if (doc.nodePrincipal.isSystemPrincipal &&
doc.contentType == "application/vnd.mozilla.xul+xml") {
for (let script of [
"chrome://global/content/elements/stringbundle.js",
"chrome://global/content/elements/general.js",
]) {
Services.scriptloader.loadSubScript(script, doc.ownerGlobal);
}
Services.scriptloader.loadSubScript(
"chrome://global/content/customElements.js", doc.ownerGlobal);
}
break;