Index: Source/core/page/CustomContextMenuProvider.cpp |
diff --git a/Source/core/page/CustomContextMenuProvider.cpp b/Source/core/page/CustomContextMenuProvider.cpp |
index 281fea6bb3ee3e68a3c43b2275e16d758845e967..a05fbda2313866003a8dcb9670877e4f5dfc1503 100644 |
--- a/Source/core/page/CustomContextMenuProvider.cpp |
+++ b/Source/core/page/CustomContextMenuProvider.cpp |
@@ -45,7 +45,7 @@ void CustomContextMenuProvider::populateContextMenu(ContextMenu* menu) |
void CustomContextMenuProvider::contextMenuItemSelected(const ContextMenuItem* item) |
{ |
if (HTMLElement* element = menuItemAt(item->action())) { |
- RefPtrWillBeRawPtr<SimulatedMouseEvent> click = SimulatedMouseEvent::create(EventTypeNames::click, m_menu->document().domWindow(), Event::create()); |
+ RefPtrWillBeRawPtr<SimulatedMouseEvent> click = SimulatedMouseEvent::create(EventTypeNames::click, m_menu->document().domWindow(), Event::create(), SimulatedClickCreationScope::FromUserAgent); |
click->setRelatedTarget(m_subjectElement.get()); |
element->dispatchEvent(click.release()); |
} |