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:
Andrea Marchesini 2024-10-01 11:50:28 +00:00
parent 8e3c8381ed
commit c16e549d8a

View File

@ -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,