| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index ca6138a5f3195193be584c02d755ce9afc4cb229..d3d5389a2b0ecb04afd180cce2a2ac7f267ed7a1 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -756,7 +756,12 @@ bool LocalFrame::isURLAllowed(const KURL& url) const
|
|
|
| bool LocalFrame::shouldReuseDefaultView(const KURL& url) const
|
| {
|
| - return loader().stateMachine()->isDisplayingInitialEmptyDocument() && document()->isSecureTransitionTo(url);
|
| + // Secure transitions can only happen when navigating from the initial empty
|
| + // document.
|
| + if (!loader().stateMachine()->isDisplayingInitialEmptyDocument())
|
| + return false;
|
| +
|
| + return document()->isSecureTransitionTo(url);
|
| }
|
|
|
| void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
|
|
|