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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.h

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/loader/FrameLoader.h
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.h b/third_party/WebKit/Source/core/loader/FrameLoader.h
index 1203d2fbf3b5014e4ae082b48f3f272dc7a517f4..be92d674fa823fa97707c9c8c20f598a79e62151 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.h
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.h
@@ -214,6 +214,12 @@ class CORE_EXPORT FrameLoader final {
bool isClientRedirect,
HTMLFormElement*);
+ // PlzNavigate: Navigations handled by the client are treated as
+ // provisional navigations.
+ bool hasProvisionalNavigation() const {
+ return provisionalDocumentLoader() || m_isNavigationHandledByClient;
+ }
+
DECLARE_TRACE();
static void setReferrerForFrameRequest(FrameLoadRequest&);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698