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

Unified Diff: third_party/WebKit/Source/core/input/GestureManager.cpp

Issue 2392773002: Reenable framebusting deprecation, change it to allow navigation if iframe has ever had a user gestu (Closed)
Patch Set: TODOs and TouchEventmanager Created 4 years, 2 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/input/GestureManager.cpp
diff --git a/third_party/WebKit/Source/core/input/GestureManager.cpp b/third_party/WebKit/Source/core/input/GestureManager.cpp
index a9fc821e4441b9c384e6220d74f8643dedc36548..181cec446f314c6b5c5e4b3d2e2b72f63299f974 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -139,7 +139,10 @@ WebInputEventResult GestureManager::handleGestureTap(
uint64_t preDispatchDomTreeVersion = m_frame->document()->domTreeVersion();
uint64_t preDispatchStyleVersion = m_frame->document()->styleVersion();
+ // TODO(japhet): UserGestureIndicator should setHasReceivedUserGesture()
+ // on the Document.
UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture);
Rick Byers 2016/10/06 16:26:47 for really simple cases like this, perhaps we shou
+ m_frame->document()->setHasReceivedUserGesture();
HitTestResult currentHitTest = targetedEvent.hitTestResult();

Powered by Google App Engine
This is Rietveld 408576698