summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index 101aae156f7..2657e10838f 100644
--- a/chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/chromium/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -691,12 +691,13 @@ void DocumentLoader::CommitNavigation(const AtomicString& mime_type,
if (!Document::ThreadedParsingEnabledForTesting())
parsing_policy = kForceSynchronousParsing;
- InstallNewDocument(Url(), owner_document,
- frame_->ShouldReuseDefaultView(Url())
- ? WebGlobalObjectReusePolicy::kUseExisting
- : WebGlobalObjectReusePolicy::kCreateNew,
- mime_type, encoding, InstallNewDocumentReason::kNavigation,
- parsing_policy, overriding_url);
+ InstallNewDocument(
+ Url(), owner_document,
+ frame_->ShouldReuseDefaultView(Url(), GetContentSecurityPolicy())
+ ? WebGlobalObjectReusePolicy::kUseExisting
+ : WebGlobalObjectReusePolicy::kCreateNew,
+ mime_type, encoding, InstallNewDocumentReason::kNavigation,
+ parsing_policy, overriding_url);
parser_->SetDocumentWasLoadedAsPartOfNavigation();
frame_->GetDocument()->MaybeHandleHttpRefresh(
response_.HttpHeaderField(HTTPNames::Refresh),