diff --git a/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.dtd b/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.dtd deleted file mode 100644 index 05780463406..00000000000 --- a/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.dtd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.properties b/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.properties deleted file mode 100644 index 3a1bd2f13f4..00000000000 --- a/mozilla/browser/locales/en-US/chrome/cookie/cookieAcceptDialog.properties +++ /dev/null @@ -1,17 +0,0 @@ -hostColon=Host: -domainColon=Domain: -forSecureOnly=Encrypted connections only -forAnyConnection=Any type of connection -atEndOfSession=at end of session - -showDetails=Show Details -hideDetails=Hide Details -detailsAccessKey=T - -permissionToSetACookie = The site %S wants to set a cookie. -permissionToSetSecondCookie = The site %S wants to set a second cookie. -# LOCALIZATION NOTE (PermissionToSetAnotherCookie): First %S: sitename, second %S: number of cookies already present for that site -permissionToSetAnotherCookie = The site %S wants to set another cookie.\nYou already have %S cookies from this site. -permissionToModifyCookie = The site %S wants to modify an existing cookie. -permissionToAcceptImage = The site %S wants to load an image. -rememberThisDecision = Remember this decision diff --git a/mozilla/browser/locales/generic/chrome/cookie/contents.rdf b/mozilla/browser/locales/generic/chrome/cookie/contents.rdf deleted file mode 100644 index 8265ba52eb0..00000000000 --- a/mozilla/browser/locales/generic/chrome/cookie/contents.rdf +++ /dev/null @@ -1,26 +0,0 @@ - - -#filter substitution - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/jar.mn b/mozilla/extensions/cookie/jar.mn deleted file mode 100644 index fd13a50a21d..00000000000 --- a/mozilla/extensions/cookie/jar.mn +++ /dev/null @@ -1,36 +0,0 @@ -comm.jar: -* content/cookie/contents.rdf (resources/content/contents.rdf) - content/cookie/cookieTasksOverlay.xul (resources/content/cookieTasksOverlay.xul) - content/cookie/cookieNavigatorOverlay.xul (resources/content/cookieNavigatorOverlay.xul) - content/cookie/cookieContextOverlay.xul (resources/content/cookieContextOverlay.xul) - content/cookie/cookiePrefsOverlay.xul (resources/content/cookiePrefsOverlay.xul) - content/cookie/pref-cookies.xul (resources/content/pref-cookies.xul) - content/cookie/pref-images.xul (resources/content/pref-images.xul) - content/cookie/pref-popups.xul (resources/content/pref-popups.xul) - content/cookie/cookieOverlay.js (resources/content/cookieOverlay.js) - content/cookie/p3p.xul (resources/content/p3p.xul) - content/cookie/p3pDialog.xul (resources/content/p3pDialog.xul) - content/cookie/cookieAcceptDialog.xul (resources/content/cookieAcceptDialog.xul) - content/cookie/cookieAcceptDialog.js (resources/content/cookieAcceptDialog.js) - -modern.jar: - skin/modern/communicator/cookie/taskbar-cookie.gif (resources/skin/modern/taskbar-cookie.gif) - skin/modern/communicator/cookie/status-cookie.gif (resources/skin/modern/status-cookie.gif) - -classic.jar: - skin/classic/communicator/cookie/taskbar-cookie.gif (resources/skin/classic/taskbar-cookie.gif) - skin/classic/communicator/cookie/status-cookie.gif (resources/skin/classic/status-cookie.gif) - -en-US.jar: -* locale/en-US/cookie/contents.rdf (resources/locale/en-US/contents.rdf) - locale/en-US/cookie/cookieTasksOverlay.dtd (resources/locale/en-US/cookieTasksOverlay.dtd) - locale/en-US/cookie/cookieNavigatorOverlay.dtd (resources/locale/en-US/cookieNavigatorOverlay.dtd) - locale/en-US/cookie/cookieContextOverlay.dtd (resources/locale/en-US/cookieContextOverlay.dtd) - locale/en-US/cookie/cookiePrefsOverlay.dtd (resources/locale/en-US/cookiePrefsOverlay.dtd) - locale/en-US/cookie/pref-cookies.dtd (resources/locale/en-US/pref-cookies.dtd) - locale/en-US/cookie/pref-images.dtd (resources/locale/en-US/pref-images.dtd) - locale/en-US/cookie/pref-popups.dtd (resources/locale/en-US/pref-popups.dtd) - locale/en-US/cookie/p3p.dtd (resources/locale/en-US/p3p.dtd) - locale/en-US/cookie/cookie.properties (resources/locale/en-US/cookie.properties) - locale/en-US/cookie/cookieAcceptDialog.properties (resources/locale/en-US/cookieAcceptDialog.properties) - locale/en-US/cookie/cookieAcceptDialog.dtd (resources/locale/en-US/cookieAcceptDialog.dtd) diff --git a/mozilla/extensions/cookie/resources/content/contents.rdf b/mozilla/extensions/cookie/resources/content/contents.rdf deleted file mode 100644 index 1f902175b47..00000000000 --- a/mozilla/extensions/cookie/resources/content/contents.rdf +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - chrome://cookie/content/cookieContextOverlay.xul - - - - chrome://cookie/content/cookiePrefsOverlay.xul - - - - chrome://cookie/content/cookieNavigatorOverlay.xul - chrome://cookie/content/cookieTasksOverlay.xul - - - - chrome://cookie/content/cookieContextOverlay.xul - - - diff --git a/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.js b/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.js deleted file mode 100644 index 2b6280489d5..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.js +++ /dev/null @@ -1,218 +0,0 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is cookie manager code. - * - * The Initial Developer of the Original Code is - * Michiel van Leeuwen. - * Portions created by the Initial Developer are Copyright (C) 2002 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -const nsICookieAcceptDialog = Components.interfaces.nsICookieAcceptDialog; -const nsIDialogParamBlock = Components.interfaces.nsIDialogParamBlock; -const nsICookie = Components.interfaces.nsICookie; -const nsICookiePromptService = Components.interfaces.nsICookiePromptService; - -var params; -var cookieBundle; -var gDateService = null; - -var showDetails = ""; -var hideDetails = ""; -var detailsAccessKey = ""; - -function onload() -{ - doSetOKCancel(cookieAcceptNormal, cookieDeny, cookieAcceptSession); - - var dialog = document.documentElement; - - document.getElementById("Button2").collapsed = false; - - document.getElementById("ok").label = dialog.getAttribute("acceptLabel"); - document.getElementById("ok").accessKey = dialog.getAttribute("acceptKey"); - document.getElementById("Button2").label = dialog.getAttribute("extra1Label"); - document.getElementById("Button2").accessKey = dialog.getAttribute("extra1Key"); - document.getElementById("cancel").label = dialog.getAttribute("cancelLabel"); - document.getElementById("cancel").accessKey = dialog.getAttribute("cancelKey"); - - if (!gDateService) { - const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; - const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat; - gDateService = Components.classes[nsScriptableDateFormat_CONTRACTID] - .getService(nsIScriptableDateFormat); - } - - cookieBundle = document.getElementById("cookieBundle"); - - //cache strings - if (!showDetails) { - showDetails = cookieBundle.getString('showDetails'); - } - if (!hideDetails) { - hideDetails = cookieBundle.getString('hideDetails'); - } - detailsAccessKey = cookieBundle.getString('detailsAccessKey'); - - if (document.getElementById('infobox').hidden) { - document.getElementById('disclosureButton').setAttribute("label",showDetails); - } else { - document.getElementById('disclosureButton').setAttribute("label",hideDetails); - } - document.getElementById('disclosureButton').setAttribute("accesskey",detailsAccessKey); - - if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) { - try { - params = window.arguments[0].QueryInterface(nsIDialogParamBlock); - var objects = params.objects; - var cookie = params.objects.queryElementAt(0,nsICookie); - - var cookiesFromHost = params.GetInt(nsICookieAcceptDialog.COOKIESFROMHOST); - - var messageFormat; - if (params.GetInt(nsICookieAcceptDialog.CHANGINGCOOKIE)) - messageFormat = 'permissionToModifyCookie'; - else if (cookiesFromHost > 1) - messageFormat = 'permissionToSetAnotherCookie'; - else if (cookiesFromHost == 1) - messageFormat = 'permissionToSetSecondCookie'; - else - messageFormat = 'permissionToSetACookie'; - - var hostname = params.GetString(nsICookieAcceptDialog.HOSTNAME); - - var messageText; - if (cookie) - messageText = cookieBundle.getFormattedString(messageFormat,[hostname, cookiesFromHost]); - else - // No cookies means something went wrong. Bring up the dialog anyway - // to not make the mess worse. - messageText = cookieBundle.getFormattedString(messageFormat,["",cookiesFromHost]); - - var messageParent = document.getElementById("dialogtextbox"); - var messageParagraphs = messageText.split("\n"); - - // use value for the header, so it doesn't wrap. - var headerNode = document.getElementById("dialog-header"); - headerNode.setAttribute("value",messageParagraphs[0]); - - // use childnodes here, the text can wrap - for (var i = 1; i < messageParagraphs.length; i++) { - var descriptionNode = document.createElement("description"); - text = document.createTextNode(messageParagraphs[i]); - descriptionNode.appendChild(text); - messageParent.appendChild(descriptionNode); - } - - if (cookie) { - document.getElementById('ifl_name').setAttribute("value",cookie.name); - document.getElementById('ifl_value').setAttribute("value",cookie.value); - document.getElementById('ifl_host').setAttribute("value",cookie.host); - document.getElementById('ifl_path').setAttribute("value",cookie.path); - document.getElementById('ifl_isSecure').setAttribute("value", - cookie.isSecure ? - cookieBundle.getString("forSecureOnly") : cookieBundle.getString("forAnyConnection") - ); - document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(cookie.expires)); - document.getElementById('ifl_isDomain').setAttribute("value", - cookie.isDomain ? - cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon") - ); - } - // set default result to not accept the cookie - params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0); - // and to not persist - params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, 0); - } catch (e) { - } - } -} - -function showhideinfo() -{ - var infobox=document.getElementById('infobox'); - - if (infobox.hidden) { - infobox.setAttribute("hidden","false"); - document.getElementById('disclosureButton').setAttribute("label",hideDetails); - } else { - infobox.setAttribute("hidden","true"); - document.getElementById('disclosureButton').setAttribute("label",showDetails); - } - sizeToContent(); -} - -function cookieAcceptNormal() -{ - // accept the cookie normally - params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.ACCEPT_COOKIE); - // And remember that when needed - params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); - window.close(); -} - -function cookieAcceptSession() -{ - // accept for the session only - params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.ACCEPT_SESSION_COOKIE); - // And remember that when needed - params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); - window.close(); -} - -function cookieDeny() -{ - // say that the cookie was rejected - params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.DENY_COOKIE); - // And remember that when needed - params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); - window.close(); -} - -function GetExpiresString(secondsUntilExpires) { - if (secondsUntilExpires) { - var date = new Date(1000*secondsUntilExpires); - - // if a server manages to set a really long-lived cookie, the dateservice - // can't cope with it properly, so we'll just return a blank string - // see bug 238045 for details - var expiry = ""; - try { - expiry = gDateService.FormatDateTime("", gDateService.dateFormatLong, - gDateService.timeFormatSeconds, - date.getFullYear(), date.getMonth()+1, - date.getDate(), date.getHours(), - date.getMinutes(), date.getSeconds()); - } catch(ex) { - // do nothing - } - return expiry; - } - return cookieBundle.getString("atEndOfSession"); -} diff --git a/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.xul b/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.xul deleted file mode 100644 index bc85da43049..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookieAcceptDialog.xul +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/resources/content/cookieNavigatorOverlay.xul b/mozilla/extensions/cookie/resources/content/cookieNavigatorOverlay.xul deleted file mode 100644 index ed5d82db146..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookieNavigatorOverlay.xul +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/resources/content/cookieOverlay.js b/mozilla/extensions/cookie/resources/content/cookieOverlay.js deleted file mode 100644 index 45328e4cf2a..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookieOverlay.js +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; c-basic-offset: 4; -*- - * - * ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is mozilla.org Code. - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Neil Rashbrook - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -function openCookieViewer(viewerType) -{ - const wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var enumerator = wm.getEnumerator("mozilla:cookieviewer"); - while (enumerator.hasMoreElements()) { - var viewer = enumerator.getNext(); - if (viewer.arguments[0] == viewerType) { - viewer.focus(); - return; - } - } - window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul", - "_blank", "chrome,resizable", viewerType); -} - -function viewImages() { - openCookieViewer("imageManager"); -} - -function viewCookies() { - openCookieViewer("cookieManager"); -} - -function viewCookiesFromIcon() { - openCookieViewer("cookieManagerFromIcon"); -} - -function viewP3P() { - window.openDialog - ("chrome://cookie/content/p3p.xul","_blank","chrome,resizable=no"); -} diff --git a/mozilla/extensions/cookie/resources/content/cookiePrefsOverlay.xul b/mozilla/extensions/cookie/resources/content/cookiePrefsOverlay.xul deleted file mode 100644 index 89086e72159..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookiePrefsOverlay.xul +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/resources/content/cookieTasksOverlay.xul b/mozilla/extensions/cookie/resources/content/cookieTasksOverlay.xul deleted file mode 100644 index 418bf1f3654..00000000000 --- a/mozilla/extensions/cookie/resources/content/cookieTasksOverlay.xul +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/resources/content/p3p.xul b/mozilla/extensions/cookie/resources/content/p3p.xul deleted file mode 100644 index d946903492f..00000000000 --- a/mozilla/extensions/cookie/resources/content/p3p.xul +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - &p3pDetails; - - &choose; - - - - - - - - - - - - - - - - - - - - - - &firstParty.label; - &thirdParty.label; - - - &noPolicy.label; - - - - - - - - - - - - - - - - - - - &noConsent.label; - - - - - - - - - - - - - - - - - - - &implicitConsent.label; - - - - - - - - - - - - - - - - - - - &explicitConsent.label; - - - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/extensions/cookie/resources/content/p3pDialog.xul b/mozilla/extensions/cookie/resources/content/p3pDialog.xul deleted file mode 100644 index ff13004847a..00000000000 --- a/mozilla/extensions/cookie/resources/content/p3pDialog.xul +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - &p3pDialogMessage1.label; - - - - - - - - - - &p3pDialogMessage2.label; - diff --git a/mozilla/extensions/cookie/resources/content/pref-cookies.xul b/mozilla/extensions/cookie/resources/content/pref-cookies.xul deleted file mode 100644 index 5a01f1f443d..00000000000 --- a/mozilla/extensions/cookie/resources/content/pref-cookies.xul +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - - - - - - - - - - -