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

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

Issue 2780953002: When historyEntryRequiresUserGesture is enabled, exempt docs that have been committed for 5 seconds (Closed)
Patch Set: Address ojan's comments Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 53f7684b8db3ea884fdd141dbc5b29bc0ca880a9..b8ffb5666b8eb4228c52bf7673b3e16f55ebf1d7 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -715,9 +715,8 @@ FrameLoadType FrameLoader::determineFrameLoadType(
m_documentLoader->loadType() == FrameLoadTypeReload)
return FrameLoadTypeReload;
- if (m_frame->settings()->getHistoryEntryRequiresUserGesture() &&
- request.originDocument() &&
- !request.originDocument()->frame()->hasReceivedUserGesture())
+ if (request.originDocument() &&
+ !request.originDocument()->canCreateHistoryEntry())
return FrameLoadTypeReplaceCurrentItem;
if (request.resourceRequest().url().isEmpty() &&
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698