Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
index a971232ae0f0bd9c3c005480eb543729efe65e01..76ff0c03398a6517bee3375fa51d1269fab25e7f 100644 |
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
@@ -37,6 +37,7 @@ |
#include "core/HTMLNames.h" |
#include "core/clipboard/DataObject.h" |
#include "core/clipboard/DataTransfer.h" |
+#include "core/dom/DocumentUserGestureToken.h" |
#include "core/dom/ExecutionContext.h" |
#include "core/dom/Fullscreen.h" |
#include "core/events/DragEvent.h" |
@@ -477,7 +478,8 @@ WebString WebPluginContainerImpl::executeScriptURL(const WebURL& url, |
kurl.getString().substring(strlen("javascript:"))); |
UserGestureIndicator gestureIndicator( |
- popupsAllowed ? UserGestureToken::create(UserGestureToken::NewGesture) |
+ popupsAllowed ? DocumentUserGestureToken::create( |
+ frame->document(), UserGestureToken::NewGesture) |
: nullptr); |
v8::HandleScope handleScope(toIsolate(frame)); |
v8::Local<v8::Value> result = |