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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 495743003: Add an extra guard to replaceDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ppdated 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
Index: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 9a41e1ef6dbb2d99a4abf8a1a8f74ad31889c6cd..b2787069476e6b72c578cbed107a3fc3a73d0594 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -546,6 +546,11 @@ bool LocalFrame::isURLAllowed(const KURL& url) const
return true;
}
+bool LocalFrame::shouldReuseDefaultView(const KURL& url) const
+{
+ return loader().stateMachine()->isDisplayingInitialEmptyDocument() && document()->isSecureTransitionTo(url);
+}
+
void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
{
spellChecker().removeSpellingMarkersUnderWords(words);

Powered by Google App Engine
This is Rietveld 408576698