зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543066 - P2 Do not obtain a cross-origin opener-policy through non-HTTPS r=nika
Differential Revision: https://phabricator.services.mozilla.com/D40671 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
2e3d48bb52
Коммит
fdc7be95aa
|
@ -4338,6 +4338,11 @@ NS_IMETHODIMP HttpBaseChannel::GetCrossOriginOpenerPolicy(
|
|||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
// A document delivered over insecure HTTP will always lack COOP.
|
||||
if (!mURI->SchemeIs("https")) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsAutoCString openerPolicy;
|
||||
Unused << mResponseHead->GetHeader(nsHttp::Cross_Origin_Opener_Policy,
|
||||
openerPolicy);
|
||||
|
|
Загрузка…
Ссылка в новой задаче