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

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

Issue 2103733004: Set navigationStart correctly for all load types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 5 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 127d12b75c152d8954bc577e112b1058b4ee0747..d57a9c09ae189ae25de484b1b77a630f8291cd3a 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.h
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.h
@@ -105,6 +105,9 @@ public:
// above the document without risking a URL spoof.
void didAccessInitialDocument();
+ // Returns true if |didAccessInitialDocument| was called.
+ bool hasAccessedInitialDocument() const { return m_hasAccessedInitialDocument; }
+
// If the initial empty document is showing and has been accessed, this
// cancels the timer and immediately notifies the client in cases that
// waiting to notify would allow a URL spoof.
@@ -280,7 +283,7 @@ private:
Timer<FrameLoader> m_checkTimer;
- bool m_didAccessInitialDocument;
+ bool m_hasAccessedInitialDocument;
Timer<FrameLoader> m_didAccessInitialDocumentTimer;
SandboxFlags m_forcedSandboxFlags;

Powered by Google App Engine
This is Rietveld 408576698