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

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: Fix faliing content_browsertest 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 4151b5b0ab23efe7aa8ce94feb70f1e07093ab50..3912e9c2f7f9e248d5ad1adaa71084747b979be5 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -71,6 +71,7 @@ HitTestRequest::HitTestRequestType GestureManager::getHitTypeForGestureType(
WebInputEventResult GestureManager::handleGestureEventInFrame(
const GestureEventWithHitTestResults& targetedEvent) {
DCHECK(!targetedEvent.event().isScrollEvent());
+ m_frame->document()->setHasReceivedUserGesture();
Node* eventTarget = targetedEvent.hitTestResult().innerNode();
const PlatformGestureEvent& gestureEvent = targetedEvent.event();

Powered by Google App Engine
This is Rietveld 408576698