Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: Source/core/dom/DocumentInit.cpp

Issue 495743003: Add an extra guard to replaceDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Landing Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DocumentInit.h ('k') | Source/core/dom/DocumentParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentInit.cpp
diff --git a/Source/core/dom/DocumentInit.cpp b/Source/core/dom/DocumentInit.cpp
index aeff8ba7b42836478af1c0cbab47a558fecef830..31b8feb749b00dbf32219092a59d316a4d7ace3f 100644
--- a/Source/core/dom/DocumentInit.cpp
+++ b/Source/core/dom/DocumentInit.cpp
@@ -70,6 +70,7 @@ DocumentInit::DocumentInit(const KURL& url, LocalFrame* frame, WeakPtrWillBeRawP
, m_contextDocument(contextDocument)
, m_importsController(importsController)
, m_createNewRegistrationContext(false)
+ , m_shouldReuseDefaultView(frame && frame->shouldReuseDefaultView(url))
{
}
@@ -82,6 +83,7 @@ DocumentInit::DocumentInit(const DocumentInit& other)
, m_importsController(other.m_importsController)
, m_registrationContext(other.m_registrationContext)
, m_createNewRegistrationContext(other.m_createNewRegistrationContext)
+ , m_shouldReuseDefaultView(other.m_shouldReuseDefaultView)
{
}
« no previous file with comments | « Source/core/dom/DocumentInit.h ('k') | Source/core/dom/DocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698