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

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

Issue 1840813002: Always ignore navigation in Document::detach() in LocalFrame::navigate() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c08c5dea4a5a2d7bf32a6ce1c02ed09b318931e0..c99a3e6334b0b454fc4769765556643af6ca9a69 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -282,7 +282,7 @@ void LocalFrame::navigate(Document& originDocument, const KURL& url, bool replac
// TODO(japhet): This special case is also necessary for behavior asserted by some extensions tests.
// Using NavigationScheduler::scheduleNavigationChange causes the navigation to be flagged as a
// client redirect, which is observable via the webNavigation extension api.
- if (isMainFrame() && !m_loader.stateMachine()->committedFirstRealDocumentLoad()) {
+ if (isNavigationAllowed() && isMainFrame() && !m_loader.stateMachine()->committedFirstRealDocumentLoad()) {
Nate Chapin 2016/03/28 21:55:43 Would it be cleaner to call the other LocalFrame::
dcheng 2016/03/28 22:24:36 Done.
FrameLoadRequest request(&originDocument, url);
request.resourceRequest().setHasUserGesture(userGestureStatus == UserGestureStatus::Active);
m_loader.load(request);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698