From 4f739d78371b5c91db010f7f931f74fdba34e11b Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Tue, 10 Aug 2021 03:12:54 +0200 Subject: [PATCH] docs: add missing event documentation (#30450) --- docs/api/webview-tag.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 33e51e9432..0c5dfd69d2 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -834,6 +834,19 @@ this purpose. Calling `event.preventDefault()` does __NOT__ have any effect. +### Event: 'did-start-navigation' + +Returns: + +* `url` String +* `isInPlace` Boolean +* `isMainFrame` Boolean +* `frameProcessId` Integer +* `frameRoutingId` Integer + +Emitted when any frame (including main) starts navigating. `isInPlace` will be +`true` for in-page navigations. + ### Event: 'did-navigate' Returns: @@ -846,6 +859,23 @@ This event is not emitted for in-page navigations, such as clicking anchor links or updating the `window.location.hash`. Use `did-navigate-in-page` event for this purpose. +### Event: 'did-frame-navigate' + +Returns: + +* `url` String +* `httpResponseCode` Integer - -1 for non HTTP navigations +* `httpStatusText` String - empty for non HTTP navigations, +* `isMainFrame` Boolean +* `frameProcessId` Integer +* `frameRoutingId` Integer + +Emitted when any frame navigation is done. + +This event is not emitted for in-page navigations, such as clicking anchor links +or updating the `window.location.hash`. Use `did-navigate-in-page` event for +this purpose. + ### Event: 'did-navigate-in-page' Returns: