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

Unified Diff: trunk/Source/core/frame/DOMWindow.cpp

Issue 264333002: Revert 172810 "Add a "forwarded" flag to usergesture tokens." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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 | « trunk/Source/core/frame/DOMTimer.cpp ('k') | trunk/Source/platform/UserGestureIndicator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/frame/DOMWindow.cpp
===================================================================
--- trunk/Source/core/frame/DOMWindow.cpp (revision 173444)
+++ trunk/Source/core/frame/DOMWindow.cpp (working copy)
@@ -852,10 +852,7 @@
if (m_frame->loader().client()->willCheckAndDispatchMessageEvent(timer->targetOrigin(), event.get()))
return;
- UserGestureToken* token = timer->userGestureToken();
- if (token)
- token->setForwarded();
- UserGestureIndicator gestureIndicator(token);
+ UserGestureIndicator gestureIndicator(timer->userGestureToken());
event->entangleMessagePorts(document());
dispatchMessageEventWithOriginCheck(timer->targetOrigin(), event, timer->stackTrace());
« no previous file with comments | « trunk/Source/core/frame/DOMTimer.cpp ('k') | trunk/Source/platform/UserGestureIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698