From a64bdbd306218fc0ebc3025bdaf88e7743eb251b Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Fri, 13 Jan 2017 17:04:09 -0500 Subject: [PATCH] Add "context-menu" DOM event to --- lib/browser/guest-view-manager.js | 1 + lib/renderer/web-view/guest-view-internal.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/browser/guest-view-manager.js b/lib/browser/guest-view-manager.js index 7217d04615d1..500ed37bbbf0 100644 --- a/lib/browser/guest-view-manager.js +++ b/lib/browser/guest-view-manager.js @@ -18,6 +18,7 @@ const supportedWebViewEvents = [ 'did-get-redirect-request', 'dom-ready', 'console-message', + 'context-menu', 'devtools-opened', 'devtools-closed', 'devtools-focused', diff --git a/lib/renderer/web-view/guest-view-internal.js b/lib/renderer/web-view/guest-view-internal.js index f07ded2c3155..110b0e453afd 100644 --- a/lib/renderer/web-view/guest-view-internal.js +++ b/lib/renderer/web-view/guest-view-internal.js @@ -16,6 +16,7 @@ const WEB_VIEW_EVENTS = { 'did-get-redirect-request': ['oldURL', 'newURL', 'isMainFrame'], 'dom-ready': [], 'console-message': ['level', 'message', 'line', 'sourceId'], + 'context-menu': ['params'], 'devtools-opened': [], 'devtools-closed': [], 'devtools-focused': [],