diff --git a/suite/common/pref/nsPrefWindow.js b/suite/common/pref/nsPrefWindow.js
index 991204a73f9..a333115c001 100644
--- a/suite/common/pref/nsPrefWindow.js
+++ b/suite/common/pref/nsPrefWindow.js
@@ -81,19 +81,6 @@ nsPrefWindow.prototype =
if( window.arguments[1] )
this.closeBranches( window.arguments[1] );
- // enable image blocker if "imageblocker.enabled" pref is true
- try {
- if (this.pref.GetBoolPref("imageblocker.enabled")) {
- element = document.getElementById("cookiesCell");
- valueWithImages = element.getAttribute("valueWithImages");
- element.setAttribute("value",valueWithImages);
- }
- } catch(e) {
- dump("imageblocker.enabled pref is missing from all.js");
- }
-
-
-
},
onOK:
@@ -270,31 +257,6 @@ nsPrefWindow.prototype =
onpageload:
function ( aPageTag )
{
- // enable image blocker if "imageblocker.enabled" pref is true
- try {
- if (this.pref.GetBoolPref("imageblocker.enabled")) {
- var element;
- if (aPageTag.indexOf("pref-cookies") != -1) {
- element = window.frames[this.contentFrame].document.getElementById("imagesArea");
- element.setAttribute("style","display: inline;" );
- element = window.frames[this.contentFrame].document.getElementById("cookieHeader");
- titleWithImages = element.getAttribute("titleWithImages");
- element.setAttribute("title",titleWithImages);
- descriptionWithImages = element.getAttribute("descriptionWithImages");
- element.setAttribute
- ("description",descriptionWithImages );
- element = window.frames[this.contentFrame].document.getElementById("cookieWindow");
- titleWithImages = element.getAttribute("titleWithImages");
- element.setAttribute("title",titleWithImages);
- } else if (aPageTag.indexOf("pref-advanced") != -1) {
- element = window.frames[this.contentFrame].document.getElementById("advancedAlwaysLoadImages");
- element.setAttribute("style","display: none;" );
- }
- }
- } catch(e) {
- dump("imageblocker.enabled pref is missing from all.js");
- }
-
if( !this.wsm.dataManager.pageData[aPageTag] )
{
var prefElements = window.frames[this.contentFrame].document.getElementsByAttribute( "pref", "true" );
diff --git a/suite/common/pref/pref-advanced.xul b/suite/common/pref/pref-advanced.xul
index 9af7d55fa82..1fa11922227 100644
--- a/suite/common/pref/pref-advanced.xul
+++ b/suite/common/pref/pref-advanced.xul
@@ -28,11 +28,22 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="color-dialog"
align="vertical" title="&window.title;"
- onload="parent.initPanel('chrome://communicator/content/pref/pref-advanced.xul');">
+ onload="imageBlockingEnabled(); parent.initPanel('chrome://communicator/content/pref/pref-advanced.xul');">
diff --git a/suite/common/pref/pref-cookies.xul b/suite/common/pref/pref-cookies.xul
index 313079a3e79..07acb8bc241 100644
--- a/suite/common/pref/pref-cookies.xul
+++ b/suite/common/pref/pref-cookies.xul
@@ -32,14 +32,26 @@
+ align="vertical"
+ onload="imageBlockingEnabled(); parent.initPanel('chrome://communicator/content/pref/pref-cookies.xul');">
+
@@ -25,9 +53,9 @@
-
+
-
+