зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1619338: Enforcing XFO in parent allows us to remove extension carve-out. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D72649
This commit is contained in:
Родитель
c697d1edde
Коммит
ecafa1de0e
|
@ -182,12 +182,6 @@ bool FramingChecker::CheckFrameOptions(nsIChannel* aChannel,
|
|||
return true;
|
||||
}
|
||||
|
||||
// if the load is triggered by an extension, then xfo should
|
||||
// not apply and we should allow the load.
|
||||
if (loadInfo->TriggeringPrincipal()->GetIsAddonOrExpandedAddonPrincipal()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIHttpChannel> httpChannel;
|
||||
nsresult rv = nsContentSecurityUtils::GetHttpChannelFromPotentialMultiPart(
|
||||
aChannel, getter_AddRefs(httpChannel));
|
||||
|
|
Загрузка…
Ссылка в новой задаче