diff --git a/mailnews/base/prefs/resources/content/mailPrefsOverlay.xul b/mailnews/base/prefs/resources/content/mailPrefsOverlay.xul index 955e824d796..e9514508fa0 100644 --- a/mailnews/base/prefs/resources/content/mailPrefsOverlay.xul +++ b/mailnews/base/prefs/resources/content/mailPrefsOverlay.xul @@ -16,6 +16,7 @@ { case "chrome://communicator/content/pref/pref-scripts.xul": _elementIDs.push("javascriptAllowMailNews"); + _elementIDs.push("pluginAllowMailNews"); break; case "chrome://communicator/content/pref/pref-appearance.xul": _elementIDs.push("generalStartupMail"); @@ -32,12 +33,20 @@ - + - + + + + + + + + diff --git a/xpfe/components/prefwindow/resources/content/pref-scripts.js b/xpfe/components/prefwindow/resources/content/pref-scripts.js index 4d2dc353b56..d8fa59fc019 100644 --- a/xpfe/components/prefwindow/resources/content/pref-scripts.js +++ b/xpfe/components/prefwindow/resources/content/pref-scripts.js @@ -106,6 +106,12 @@ function Startup(){ document.getElementById("allowDocumentCookieGet").checked = getPrefValueForCheckbox("dom.disable_cookie_get"); document.getElementById("allowDocumentCookieSet").checked = getPrefValueForCheckbox("dom.disable_cookie_set"); + //If we don't have a checkbox under groupbox pluginPreferences, we should hide it + var pluginGroup = document.getElementById("pluginPreferences") + var children = pluginGroup.childNodes; + if (!children || children.length <= 1) // 1 for the caption + pluginGroup.setAttribute("hidden", "true"); + } else { //not first time it was loaded, get default values from data document.getElementById("allowWindowOpen").checked = data["allowWindowOpen"].checked; diff --git a/xpfe/components/prefwindow/resources/content/pref-scripts.xul b/xpfe/components/prefwindow/resources/content/pref-scripts.xul index aaf5d54892e..d99efe923c4 100644 --- a/xpfe/components/prefwindow/resources/content/pref-scripts.xul +++ b/xpfe/components/prefwindow/resources/content/pref-scripts.xul @@ -56,24 +56,39 @@ ]]> -