Bug 1462798 - Create a base custom element class that shares the parseXULToFragment helper;r=Paolo
MozReview-Commit-ID: IG84xKxO9Wc
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user