mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1676651
- don't warn to console if a cookie is deleted r=dveditz
Differential Revision: https://phabricator.services.mozilla.com/D175563
This commit is contained in:
parent
c4aad864d0
commit
332b093789
@ -449,12 +449,6 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
|
|||||||
// The new cookie has expired and the old one is stale. Nothing to do.
|
// The new cookie has expired and the old one is stale. Nothing to do.
|
||||||
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
||||||
"cookie has already expired");
|
"cookie has already expired");
|
||||||
CookieLogging::LogMessageToConsole(
|
|
||||||
aCRC, aHostURI, nsIScriptError::warningFlag,
|
|
||||||
CONSOLE_REJECTION_CATEGORY, "CookieRejectedExpired"_ns,
|
|
||||||
AutoTArray<nsString, 1>{
|
|
||||||
NS_ConvertUTF8toUTF16(aCookie->Name()),
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -519,12 +513,6 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
|
|||||||
if (aCookie->Expiry() <= currentTime) {
|
if (aCookie->Expiry() <= currentTime) {
|
||||||
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
||||||
"previously stored cookie was deleted");
|
"previously stored cookie was deleted");
|
||||||
CookieLogging::LogMessageToConsole(
|
|
||||||
aCRC, aHostURI, nsIScriptError::warningFlag,
|
|
||||||
CONSOLE_REJECTION_CATEGORY, "CookieRejectedExpired"_ns,
|
|
||||||
AutoTArray<nsString, 1>{
|
|
||||||
NS_ConvertUTF8toUTF16(aCookie->Name()),
|
|
||||||
});
|
|
||||||
NotifyChanged(oldCookie, u"deleted", oldCookieIsSession);
|
NotifyChanged(oldCookie, u"deleted", oldCookieIsSession);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -538,12 +526,6 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
|
|||||||
if (aCookie->Expiry() <= currentTime) {
|
if (aCookie->Expiry() <= currentTime) {
|
||||||
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieHeader,
|
||||||
"cookie has already expired");
|
"cookie has already expired");
|
||||||
CookieLogging::LogMessageToConsole(
|
|
||||||
aCRC, aHostURI, nsIScriptError::warningFlag,
|
|
||||||
CONSOLE_REJECTION_CATEGORY, "CookieRejectedExpired"_ns,
|
|
||||||
AutoTArray<nsString, 1>{
|
|
||||||
NS_ConvertUTF8toUTF16(aCookie->Name()),
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,8 +80,6 @@ CookieRejectedSecureButNonHttps=Cookie “%1$S” has been rejected because a no
|
|||||||
CookieRejectedThirdParty=Cookie “%1$S” has been rejected as third-party.
|
CookieRejectedThirdParty=Cookie “%1$S” has been rejected as third-party.
|
||||||
# LOCALIZATION NOTE (CookieRejectedNonsecureOverSecure): %1$S is the cookie name.
|
# LOCALIZATION NOTE (CookieRejectedNonsecureOverSecure): %1$S is the cookie name.
|
||||||
CookieRejectedNonsecureOverSecure=Cookie “%1$S” has been rejected because there is an existing “secure” cookie.
|
CookieRejectedNonsecureOverSecure=Cookie “%1$S” has been rejected because there is an existing “secure” cookie.
|
||||||
# LOCALIZATION NOTE (CookieRejectedExpired): %1$S is the cookie name.
|
|
||||||
CookieRejectedExpired=Cookie “%1$S” has been rejected because it is already expired.
|
|
||||||
# LOCALIZATION NOTE (CookieRejectedForNonSameSiteness): %1$S is the cookie name.
|
# LOCALIZATION NOTE (CookieRejectedForNonSameSiteness): %1$S is the cookie name.
|
||||||
CookieRejectedForNonSameSiteness=Cookie “%1$S” has been rejected because it is in a cross-site context and its “SameSite” is “Lax” or “Strict”.
|
CookieRejectedForNonSameSiteness=Cookie “%1$S” has been rejected because it is in a cross-site context and its “SameSite” is “Lax” or “Strict”.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user