Merge pull request #8409 from javan/add-context-menu-event-to-webview
Add "context-menu" DOM event to <webview>
This commit is contained in:
commit
9089d55342
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ const supportedWebViewEvents = [
|
||||||
'did-get-redirect-request',
|
'did-get-redirect-request',
|
||||||
'dom-ready',
|
'dom-ready',
|
||||||
'console-message',
|
'console-message',
|
||||||
|
'context-menu',
|
||||||
'devtools-opened',
|
'devtools-opened',
|
||||||
'devtools-closed',
|
'devtools-closed',
|
||||||
'devtools-focused',
|
'devtools-focused',
|
||||||
|
|
|
@ -16,6 +16,7 @@ const WEB_VIEW_EVENTS = {
|
||||||
'did-get-redirect-request': ['oldURL', 'newURL', 'isMainFrame'],
|
'did-get-redirect-request': ['oldURL', 'newURL', 'isMainFrame'],
|
||||||
'dom-ready': [],
|
'dom-ready': [],
|
||||||
'console-message': ['level', 'message', 'line', 'sourceId'],
|
'console-message': ['level', 'message', 'line', 'sourceId'],
|
||||||
|
'context-menu': ['params'],
|
||||||
'devtools-opened': [],
|
'devtools-opened': [],
|
||||||
'devtools-closed': [],
|
'devtools-closed': [],
|
||||||
'devtools-focused': [],
|
'devtools-focused': [],
|
||||||
|
|
Loading…
Reference in a new issue