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:
Emilio Cobos Álvarez 2020-07-22 14:39:50 +00:00
Родитель 636792f039
Коммит d088111466
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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