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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2721423003: Reset Frame::m_hasReceivedUserGesture for main frames on navigation (Closed)
Patch Set: One bit, reset for main frames on commit Created 3 years, 9 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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 6fa75cf9bc647ce1230b616b021a0adf8eee7440..949107e3fb719dbce2e69ce976e62b5fbeff64d6 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -515,6 +515,8 @@ void LocalFrame::documentAttached() {
selection().documentAttached(document());
inputMethodController().documentAttached(document());
spellChecker().documentAttached(document());
+ if (isMainFrame())
+ m_hasReceivedUserGesture = false;
}
LocalDOMWindow* LocalFrame::domWindow() const {
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp ('k') | third_party/WebKit/Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698