|
@@ -0,0 +1,53 @@
|
|
|
+
|
|
|
+# HG changeset patch
|
|
|
+# User aceman <acelists@atlas.sk>
|
|
|
+# Date 1541675520 -3600
|
|
|
+# Node ID 5ca1b2b18ca0fad0ca0e64665b88d651b5fa5c24
|
|
|
+# Parent d198e27e20dbf0f45b3ee5a54064c056313b18ab
|
|
|
+Bug 1503837 - Bug 1503654 follow-up: Adapt to inverted logic of ChromeUtils.isOriginAttributesEqual in cookies dialog. r+a=jorgk
|
|
|
+
|
|
|
+diff --git a/mail/components/preferences/cookies.js b/mail/components/preferences/cookies.js
|
|
|
+--- a/mail/components/preferences/cookies.js
|
|
|
++++ b/mail/components/preferences/cookies.js
|
|
|
+@@ -63,18 +63,18 @@ var gCookiesWindow = {
|
|
|
+ this._saveState();
|
|
|
+ },
|
|
|
+
|
|
|
+ _cookieEquals: function (aCookieA, aCookieB, aStrippedHost)
|
|
|
+ {
|
|
|
+ return aCookieA.rawHost == aStrippedHost &&
|
|
|
+ aCookieA.name == aCookieB.name &&
|
|
|
+ aCookieA.path == aCookieB.path &&
|
|
|
+- !ChromeUtils.isOriginAttributesEqual(aCookieA.originAttributes,
|
|
|
+- aCookieB.originAttributes);
|
|
|
++ ChromeUtils.isOriginAttributesEqual(aCookieA.originAttributes,
|
|
|
++ aCookieB.originAttributes);
|
|
|
+ },
|
|
|
+
|
|
|
+ observe: function (aCookie, aTopic, aData)
|
|
|
+ {
|
|
|
+ if (aTopic != "cookie-changed")
|
|
|
+ return;
|
|
|
+
|
|
|
+ if (aCookie instanceof Components.interfaces.nsICookie) {
|
|
|
+@@ -283,18 +283,18 @@ var gCookiesWindow = {
|
|
|
+ gCookiesWindow._hosts[item.rawHost] = null;
|
|
|
+ } else {
|
|
|
+ var parent = this._getItemAtIndex(item.parentIndex);
|
|
|
+ for (var i = 0; i < parent.cookies.length; ++i) {
|
|
|
+ var cookie = parent.cookies[i];
|
|
|
+ if (item.rawHost == cookie.rawHost &&
|
|
|
+ item.name == cookie.name &&
|
|
|
+ item.path == cookie.path &&
|
|
|
+- !ChromeUtils.isOriginAttributesEqual(item.originAttributes,
|
|
|
+- cookie.originAttributes)) {
|
|
|
++ ChromeUtils.isOriginAttributesEqual(item.originAttributes,
|
|
|
++ cookie.originAttributes)) {
|
|
|
+ parent.cookies.splice(i, removeCount);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ _invalidateCache: function (aIndex)
|
|
|
+ {
|