diff --git a/toolkit/mozapps/extensions/content/pluginPrefs.js b/toolkit/mozapps/extensions/content/pluginPrefs.js index f7098bccfbee..cae0a30ca1d5 100644 --- a/toolkit/mozapps/extensions/content/pluginPrefs.js +++ b/toolkit/mozapps/extensions/content/pluginPrefs.js @@ -39,9 +39,9 @@ async function renderPluginMetadata(id) { } typeLabel.textContent = types.join(",\n"); let showProtectedModePref = canDisableFlashProtectedMode(plugin); - document - .getElementById("pluginEnableProtectedMode") - .setAttribute("collapsed", showProtectedModePref ? "" : "true"); + document.getElementById( + "pluginEnableProtectedMode" + ).hidden = !showProtectedModePref; // Disable flash blocking when Fission is enabled (See Bug 1584931). document.getElementById( @@ -66,7 +66,7 @@ function init() { let checkbox = document.getElementById(id); var prefVal = Services.prefs.getBoolPref(PREFS[id].pref); checkbox.checked = PREFS[id].invert ? !prefVal : prefVal; - checkbox.addEventListener("command", () => { + checkbox.addEventListener("change", () => { Services.prefs.setBoolPref( PREFS[id].pref, PREFS[id].invert ? !checkbox.checked : checkbox.checked diff --git a/toolkit/mozapps/extensions/content/pluginPrefs.xhtml b/toolkit/mozapps/extensions/content/pluginPrefs.xhtml new file mode 100644 index 000000000000..4eafb9f261c6 --- /dev/null +++ b/toolkit/mozapps/extensions/content/pluginPrefs.xhtml @@ -0,0 +1,72 @@ + + + +%pluginsDTD; + +%extensionsDTD; +]> + + + + + + + + + +
+ +
+
+ +
+
+
+ + &setting.learnmore; +
+ +
+
+
+ + &setting.learnmore; +
+ +
+ + diff --git a/toolkit/mozapps/extensions/content/pluginPrefs.xul b/toolkit/mozapps/extensions/content/pluginPrefs.xul deleted file mode 100644 index b774d7af3271..000000000000 --- a/toolkit/mozapps/extensions/content/pluginPrefs.xul +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - -%brandDTD; - -%pluginsDTD; - -%extensionsDTD; -]> - - - -