зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648064 - Make static clones have the CSP of the original doc. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D81997
This commit is contained in:
Родитель
636792f039
Коммит
d088111466
|
@ -11136,6 +11136,7 @@ nsresult Document::CloneDocHelper(Document* clone) const {
|
|||
RefPtr<nsDOMNavigationTiming> timing =
|
||||
mTiming->CloneNavigationTime(nsDocShell::Cast(clone->GetDocShell()));
|
||||
clone->SetNavigationTiming(timing);
|
||||
clone->SetCsp(mCSP);
|
||||
}
|
||||
|
||||
// Now ensure that our clone has the same URI, base URI, and principal as us.
|
||||
|
|
Загрузка…
Ссылка в новой задаче