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

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

Issue 2467993002: Document user gesture state should be able to propagate over postMessage (Closed)
Patch Set: Created 4 years, 1 month 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/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 5ba9b469a15c86c1539ea5390ec2abd981c4a013..2a3cf5332d80c17e711e33eb96a3fbe13e0e0755 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -36,6 +36,7 @@
#include "core/css/StyleMedia.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/DOMImplementation.h"
+#include "core/dom/DocumentUserGestureToken.h"
#include "core/dom/ExecutionContextTask.h"
#include "core/dom/FrameRequestCallback.h"
#include "core/dom/SandboxFlags.h"
@@ -633,7 +634,8 @@ void LocalDOMWindow::postMessageTimerFired(PostMessageTimer* timer) {
MessageEvent* event = timer->event();
- UserGestureIndicator gestureIndicator(timer->userGestureToken());
+ UserGestureIndicator gestureIndicator(
+ DocumentUserGestureToken::adopt(document(), timer->userGestureToken()));
event->entangleMessagePorts(document());

Powered by Google App Engine
This is Rietveld 408576698