Skip to content

Commit 4b251ea

Browse files
authored
Update DisableNavigatingBackAndForward.md
polish comments
1 parent e3c1793 commit 4b251ea

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

specs/DisableNavigatingBackAndForward.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,11 @@ void WebView_NavigationStarting(object sender, CoreWebView2NavigationStartingEve
7373
// Enums and structs
7474
[v1_enum]
7575
typedef enum COREWEBVIEW2_NAVIGATION_KIND {
76-
/// Indicates a navigation that is reloading the current document.
77-
/// For example, a navigation caused by `CoreWebView2.Reload()` or in script `window.history.go()`.
76+
/// A navigation caused by CoreWebView2.Reload(), location.reload(), the end user using F5 or other UX, or other reload mechanisms to reload the current document without modifying the navigation history.
7877
COREWEBVIEW2_NAVIGATION_KIND_RELOAD,
79-
/// Indicates a navigation that is going back or forward in the navigation history.
80-
/// For example, a navigation caused by `CoreWebView2.GoBack()/Forward()` or in script `window.history.go(-1)/go(1)`.
78+
/// A navigation back or forward to a different entry in the session navigation history. For example via CoreWebView2.Back(), location.back(), the end user pressing Alt+Left or other UX, or other mechanisms to navigate forward or backward in the current session navigation history.
8179
COREWEBVIEW2_NAVIGATION_KIND_BACKORFORWARD,
82-
/// Indicates a navigation that is navigating to a different document.
83-
/// For example, a navigation caused by `CoreWebView2.Navigate()`, or a link click.
80+
/// A navigation to a different document. This can be caused by CoreWebView2.Navigate(), window.location.href = '...', or other WebView2 or DOM APIs that navigate to a specific URI.
8481
COREWEBVIEW2_NAVIGATION_KIND_DIFFERENT,
8582
} COREWEBVIEW2_NAVIGATION_KIND;
8683

@@ -89,7 +86,7 @@ typedef enum COREWEBVIEW2_NAVIGATION_KIND {
8986
interface ICoreWebView2NavigationStartingEventArgs3 : ICoreWebView2NavigationStartingEventArgs2 {
9087

9188
/// Indicates if this navigation is reload, back/forward or navigating to a different document
92-
[propget] HRESULT NavigationHistoryKind(
89+
[propget] HRESULT NavigationKind(
9390
[out, retval] COREWEBVIEW2_NAVIGATION_KIND* kind);
9491
}
9592
}

0 commit comments

Comments
 (0)