зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1695050 - Part 11: Update the call-sites of CookieJarSettings::Create() for Fetch and XHR. r=smaug
This patch updates all call-sites to pass the principal for Fetch and XHR. Differential Revision: https://phabricator.services.mozilla.com/D109054
This commit is contained in:
Родитель
64812048ac
Коммит
1f289e1e64
|
@ -577,7 +577,7 @@ already_AddRefed<Promise> FetchRequest(nsIGlobalObject* aGlobal,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
cookieJarSettings = mozilla::net::CookieJarSettings::Create();
|
||||
cookieJarSettings = mozilla::net::CookieJarSettings::Create(principal);
|
||||
}
|
||||
|
||||
if (!loadGroup) {
|
||||
|
|
|
@ -39,7 +39,8 @@ already_AddRefed<XMLHttpRequest> XMLHttpRequest::Constructor(
|
|||
cookieJarSettings = document->CookieJarSettings();
|
||||
} else {
|
||||
// We are here because this is a sandbox.
|
||||
cookieJarSettings = net::CookieJarSettings::Create();
|
||||
cookieJarSettings =
|
||||
net::CookieJarSettings::Create(principal->GetPrincipal());
|
||||
}
|
||||
|
||||
RefPtr<XMLHttpRequestMainThread> req = new XMLHttpRequestMainThread(global);
|
||||
|
|
Загрузка…
Ссылка в новой задаче