refactor: simplify <webview> event dispatch (#30458)
* refactor: simplify <webview> event dispatch * Update lib/browser/guest-view-manager.ts Co-authored-by: Jeremy Rose <jeremya@chromium.org> * remove undocumented new-window event properties Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
parent
ff128a32d9
commit
04aafcc5ef
5 changed files with 23 additions and 36 deletions
|
@ -8,7 +8,6 @@ export const enum IPC_MESSAGES {
|
|||
GUEST_INSTANCE_VISIBILITY_CHANGE = 'GUEST_INSTANCE_VISIBILITY_CHANGE',
|
||||
|
||||
GUEST_VIEW_INTERNAL_DISPATCH_EVENT = 'GUEST_VIEW_INTERNAL_DISPATCH_EVENT',
|
||||
GUEST_VIEW_INTERNAL_IPC_MESSAGE = 'GUEST_VIEW_INTERNAL_IPC_MESSAGE',
|
||||
|
||||
GUEST_VIEW_MANAGER_CREATE_AND_ATTACH_GUEST = 'GUEST_VIEW_MANAGER_CREATE_AND_ATTACH_GUEST',
|
||||
GUEST_VIEW_MANAGER_DETACH_GUEST = 'GUEST_VIEW_MANAGER_DETACH_GUEST',
|
||||
|
|
|
@ -12,7 +12,6 @@ export const webViewEvents: Record<string, readonly string[]> = {
|
|||
'devtools-opened': [],
|
||||
'devtools-closed': [],
|
||||
'devtools-focused': [],
|
||||
'new-window': ['url', 'frameName', 'disposition', 'options'],
|
||||
'will-navigate': ['url'],
|
||||
'did-start-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
||||
'did-navigate': ['url', 'httpResponseCode', 'httpStatusText'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue