electron/lib/browser
Will Anderson 2b9dae4b06
feat: add `will-frame-navigate` event (#34418)
* feat: add will-navigate-in-frame event to webContents

* docs: add documentation for webview will-frame-navigate event

* feat: Eliminate isInPlace argument from will-frame-navigate event

* fix: Fire will-frame-navigate before will-navigate

* feat: send will-frame-navigate with a WebFrameMain in the event details

* docs: Update WebContents docs for new API signature

* feat: Add custom event forwarding for <webview> will-frame-navigate

* fix: wrap WebFrameMain so it can be sent as an event

* test: update webContents and <webview> tests to match new signatures

* chore: undo unnecessary change

* fix: don't switch will-navigate to use EmitNavigationEventDetails

* test: clean up will-navigate and will-frame-navigate tests for <webview>

* chore: apply lint fixes

* chore: move GetRenderFrameHost helper into anonymous namespace

* docs: auto-generate WillFrameNavigateDetails rather than defining it manually

* test: Update <webview> tests to actually pass under new spec runner

* docs: Add section explaining relationship between various nav events

* test: Add some tests to ensure navigation event order doesn't silently change

* test: Always monitor all nav events to ensure unexpected ones don't fire

* test: Add test to verify in-page navigation event order

* feat: Change to new style where extra params are exposed as event props

* fix: Remove unused EmitNavigationEventDetails

* fix: Update tests to use new async helpers

* docs: Rename and reorder sections documenting navigation events

---------

Co-authored-by: Milan Burda <milan.burda@gmail.com>
2023-03-28 10:55:41 -04:00
..
api feat: add protocol.handle (#36674) 2023-03-27 10:00:55 -07:00
.eslintrc.json chore: add missing .eslintrc.json files to limit imports properly (#35719) 2022-09-20 13:25:33 -05:00
default-menu.ts chore: update Discord invite links (#34730) 2022-07-05 11:55:15 -04:00
devtools.ts fix: type internal APIs that can return null properly (#29852) 2021-07-27 14:48:12 +09:00
guest-view-manager.ts feat: add `will-frame-navigate` event (#34418) 2023-03-28 10:55:41 -04:00
guest-window-manager.ts chore: remove deprecated 'new-window' event (#34526) 2022-08-09 17:57:05 -04:00
init.ts feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
ipc-main-impl.ts refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
ipc-main-internal-utils.ts
ipc-main-internal.ts feat: add WebContents.ipc (#34959) 2022-08-03 16:55:12 -07:00
message-port-main.ts
parse-features-string.ts chore: move libs only used in browser out of common (#31780) 2021-11-10 08:54:51 -08:00
rpc-server.ts fix: make preload calculation identical between sandbox & non-sandboxed (#34531) 2022-06-15 13:22:28 -07:00
web-view-events.ts feat: emit `devtools-open-url` event for DevTools link selection (#36774) 2023-01-26 09:54:26 +01:00