%browserDTD; %brandDTD; ]> 0) && !("LightWeightThemeWebInstaller" in window)) { document.getAnonymousElementByAttribute(this, "anonid", "enable-button").setAttribute("disabled", "true"); document.getAnonymousElementByAttribute(this, "anonid", "enable-button").nextElementSibling.setAttribute("disabled", "true"); document.getAnonymousElementByAttribute(this, "anonid", "uninstall-button").setAttribute("disabled", "true"); } ]]> for now let prefs = xhr.responseXML.querySelectorAll(":root > setting"); for (let i = 0; i < prefs.length; i++) box.appendChild(prefs.item(i)); // Send an event so add-ons can prepopulate any non-preference based // settings let event = document.createEvent("Events"); event.initEvent("AddonOptionsLoad", true, false); this.dispatchEvent(event); // Also send a notification to match the behavior of desktop Firefox let id = this.id.substring(17); // length of |urn:mozilla:item:| Services.obs.notifyObservers(document, "addon-options-displayed", id); ]]> document.getAnonymousElementByAttribute(this, "anonid", "show-page");