diff --git a/suite/common/permissions/cookieTasksOverlay.xul b/suite/common/permissions/cookieTasksOverlay.xul
index 144128936df..e74b2dc0fdb 100644
--- a/suite/common/permissions/cookieTasksOverlay.xul
+++ b/suite/common/permissions/cookieTasksOverlay.xul
@@ -100,166 +100,9 @@
setTimeout(TestIconVisibility, 0);
}
}
-
- /******* THE FOLLOWING IS FOR THE TASKMENU OVERLAY *******/
-
- var permissionmanager;
-
- // Remove the image entries from the task menu
- function HideImage() {
- var element;
- element = document.getElementById("image");
- element.setAttribute("style","display: none;" );
- element.setAttribute("disabled","true" );
- }
-
- // for some unexplainable reason, CheckForImage() keeps getting called repeatedly
- // as we mouse over the task menu. IMO, that shouldn't be happening. To avoid
- // taking a performance hit due to this, we will set the following flag to avoid
- // reexecuting the routine
- var alreadyCheckedForImage = false;
-
- // determine which items we need to hide or disable from the task menu
- function CheckForVisibility()
- {
-
- // obtain access to permissionmanager module
- permissionmanager =
- Components.classes["@mozilla.org/permissionmanager;1"]
- .getService(Components.interfaces.nsIPermissionManager);
- if (!("_content" in window) || !window._content) {
- // this occurs if doing tasks->privacy->cookie->block from java console
- return;
- }
-
- // determine current state (blocked or unblocked) and hide appropriate menu item
- var blocked, enableElement, disableElement;
-
- blocked =
- permissionmanager.testForBlocking(window._content.location, COOKIEPERMISSION);
- if (blocked) {
- disableElement = document.getElementById("BlockCookies");
- enableElement = document.getElementById("AllowCookies");
- } else {
- disableElement = document.getElementById("AllowCookies");
- enableElement = document.getElementById("BlockCookies");
- }
- disableElement.setAttribute("disabled","true");
- enableElement.removeAttribute("disabled");
-
- blocked =
- permissionmanager.testForBlocking(window._content.location, IMAGEPERMISSION);
- if (blocked) {
- disableElement = document.getElementById("BlockImages");
- enableElement = document.getElementById("AllowImages");
- } else {
- disableElement = document.getElementById("AllowImages");
- enableElement = document.getElementById("BlockImages");
- }
- disableElement.setAttribute("disabled","true");
- enableElement.removeAttribute("disabled");
-
- // determine if image manager should be in the UI
- if (alreadyCheckedForImage) {
- return;
- }
- alreadyCheckedForImage = true;
- // remove image functions (unless overruled by the "imageblocker.enabled" pref)
- var pref;
- pref = Components.classes['@mozilla.org/preferences-service;1'];
- pref = pref.getService();
- pref = pref.QueryInterface(Components.interfaces.nsIPrefBranch);
- try {
- if (!pref.getBoolPref("imageblocker.enabled")) {
- HideImage();
- }
- } catch(e) {
- HideImage();
- }
- }
-
- // perform a Cookie or Image action
- function CookieImageAction(action) {
-
- if (!("_content" in window) || !window._content) {
- // this occurs if doing tasks->privacy->cookie->block from java console
- return;
- }
- var element;
- switch (action) {
- case "cookieAllow":
- permissionmanager.add(window._content.location, true, COOKIEPERMISSION);
- element = document.getElementById("AllowCookies");
- alert(element.getAttribute("msg"));
- break;
- case "cookieBlock":
- permissionmanager.add(window._content.location, false, COOKIEPERMISSION);
- element = document.getElementById("BlockCookies");
- alert(element.getAttribute("msg"));
- break;
- case "imageAllow":
- permissionmanager.add(window._content.location, true, IMAGEPERMISSION);
- element = document.getElementById("AllowImages");
- alert(element.getAttribute("msg"));
- break;
- case "imageBlock":
- permissionmanager.add(window._content.location, false, IMAGEPERMISSION);
- element = document.getElementById("BlockImages");
- alert(element.getAttribute("msg"));
- break;
- default:
- }
- }
-
]]>
-
-
-
-
-
-
-
-
-
-
diff --git a/suite/common/permissions/permissionsNavigatorOverlay.xul b/suite/common/permissions/permissionsNavigatorOverlay.xul
new file mode 100644
index 00000000000..a92975665bb
--- /dev/null
+++ b/suite/common/permissions/permissionsNavigatorOverlay.xul
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/suite/common/permissions/permissionsOverlay.js b/suite/common/permissions/permissionsOverlay.js
index 178ae7e1c7f..6717c5d5a51 100644
--- a/suite/common/permissions/permissionsOverlay.js
+++ b/suite/common/permissions/permissionsOverlay.js
@@ -36,11 +36,6 @@ function viewCookiesFromIcon() {
"chrome,resizable=yes", "cookieManagerFromIcon");
}
-function viewTutorial() {
- window.openDialog
- ("chrome://communicator/content/wallet/privacy.xul","tutorial","modal=no,chrome,resizable=yes,height=400,width=600", 0);
-}
-
function viewP3P() {
window.openDialog
("chrome://cookie/content/p3p.xul","_blank","chrome,resizable=no");
diff --git a/suite/common/sidebar/sidebarOverlay.xul b/suite/common/sidebar/sidebarOverlay.xul
index 6d791658d6f..3bb805ad90b 100644
--- a/suite/common/sidebar/sidebarOverlay.xul
+++ b/suite/common/sidebar/sidebarOverlay.xul
@@ -187,12 +187,16 @@
diff --git a/suite/locales/en-US/chrome/common/permissions/cookieTasksOverlay.dtd b/suite/locales/en-US/chrome/common/permissions/cookieTasksOverlay.dtd
index 94d47f9da5f..e69de29bb2d 100644
--- a/suite/locales/en-US/chrome/common/permissions/cookieTasksOverlay.dtd
+++ b/suite/locales/en-US/chrome/common/permissions/cookieTasksOverlay.dtd
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/suite/locales/en-US/chrome/common/permissions/permissionsNavigatorOverlay.dtd b/suite/locales/en-US/chrome/common/permissions/permissionsNavigatorOverlay.dtd
new file mode 100644
index 00000000000..df74cc27fde
--- /dev/null
+++ b/suite/locales/en-US/chrome/common/permissions/permissionsNavigatorOverlay.dtd
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file