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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2628153002: PlzNavigate: Fix anchor-no-multiple-windows.html layout test. (Closed)
Patch Set: Revert changes to the layout test Created 3 years, 11 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 43482a85797474481f9e2cccc4cb3732c79ab7c2..5d7199ce0f08458e29abf0784c96b3113f93cfe7 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2661,8 +2661,12 @@ void Document::open() {
}
}
- if (m_frame->loader().provisionalDocumentLoader())
+ // PlzNavigate: We should abort ongoing navigations handled by the client.
+ if (m_frame->loader().provisionalDocumentLoader() ||
+ (m_frame->settings()->getBrowserSideNavigationEnabled() &&
+ m_frame->loader().navigationHandledByClient())) {
Nate Chapin 2017/01/12 19:59:26 Do you have any sense how many other callers of pr
ananta 2017/01/12 20:36:55 Added the function and called it from here and fro
m_frame->loader().stopAllLoaders();
+ }
}
removeAllEventListenersRecursively();

Powered by Google App Engine
This is Rietveld 408576698