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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2103733004: Set navigationStart correctly for all load types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't call beforeunload on empty frames. 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 2ff0dd716f7a2455c55fe998ececc2dabd200182..cbb7025006a8a05b783d34ce7bec7b6fa8bfd486 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -1108,6 +1108,11 @@ class CONTENT_EXPORT RenderFrameImpl
// be reported to the browser process via SendUpdateState.
blink::WebHistoryItem current_history_item_;
+ // True if the frame contains the initial document (i.e. has not navigated
+ // yet) and it has been accessed by another page. Always false after the
+ // first commit.
+ bool did_access_initial_document_;
nasko 2016/07/18 22:20:00 Why can't we just expose the bit that is already k
Alexander Semashko 2016/07/19 10:59:07 Indeed. Done.
+
#if defined(ENABLE_PLUGINS)
// Current text input composition text. Empty if no composition is in
// progress.

Powered by Google App Engine
This is Rietveld 408576698