mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1484026 - Enforce Cookie IPC checks in RecvSetCookies, r=valentin,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D223976
This commit is contained in:
parent
8e3c8381ed
commit
c16e549d8a
@ -308,11 +308,7 @@ IPCResult CookieServiceParent::RecvSetCookies(
|
||||
nsIURI* aHost, bool aFromHttp, bool aIsThirdParty,
|
||||
const nsTArray<CookieStruct>& aCookies) {
|
||||
if (!ContentProcessHasCookie(aBaseDomain, aOriginAttributes)) {
|
||||
#ifdef NIGHTLY_BUILD
|
||||
return IPC_FAIL(this, "Invalid set-cookie request from content process");
|
||||
#else
|
||||
return IPC_OK();
|
||||
#endif
|
||||
}
|
||||
|
||||
return SetCookies(aBaseDomain, aOriginAttributes, aHost, aFromHttp,
|
||||
|
Loading…
Reference in New Issue
Block a user