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

Unified Diff: third_party/WebKit/Source/core/input/TouchEventManager.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/TouchEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
index 52ae9710746a4ad865c38584592e5da2331c8e9c..ba4d3b260e36eee587386dddd8f3ecda309e3f07 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
@@ -540,6 +540,10 @@ WebInputEventResult TouchEventManager::handleTouchEvent(
new UserGestureIndicator(DefinitelyProcessingUserGesture, callback));
m_touchSequenceUserGestureToken = UserGestureIndicator::currentToken();
}
+ // TODO(japhet): UserGestureIndicator should setHasReceivedUserGesture()
+ // on the Document.
+ if (UserGestureIndicator::processingUserGesture())
+ m_frame->document()->setHasReceivedUserGesture();
Rick Byers 2016/10/06 16:26:47 I believe this is the wrong document. Here m_fram
return dispatchTouchEvents(event, touchInfos, allTouchesReleased);
}

Powered by Google App Engine
This is Rietveld 408576698