diff --git a/suite/common/pref/pref-scripts.js b/suite/common/pref/pref-scripts.js
index 4d2dc353b56..d8fa59fc019 100644
--- a/suite/common/pref/pref-scripts.js
+++ b/suite/common/pref/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/suite/common/pref/pref-scripts.xul b/suite/common/pref/pref-scripts.xul
index aaf5d54892e..d99efe923c4 100644
--- a/suite/common/pref/pref-scripts.xul
+++ b/suite/common/pref/pref-scripts.xul
@@ -56,24 +56,39 @@
]]>
-
+
+