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

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

Issue 2628153002: PlzNavigate: Fix anchor-no-multiple-windows.html layout test. (Closed)
Patch Set: Update the shouldSendCompleteNotification() function to use the hasProvisionalNavigation() function 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..8d6de92c2a540663395af05b7b5dad4b7840785d 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2661,7 +2661,8 @@ void Document::open() {
}
}
- if (m_frame->loader().provisionalDocumentLoader())
+ // PlzNavigate: We should abort ongoing navigations handled by the client.
+ if (m_frame->loader().hasProvisionalNavigation())
m_frame->loader().stopAllLoaders();
}

Powered by Google App Engine
This is Rietveld 408576698