DesktopExternalNavigation enum

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public enum DesktopExternalNavigation

What an embedded window does when its page leaves the application's own origins.

Remarks

The enum is closed.

Values

OpenInBrowser

OpenInBrowser = 0

Keep the window on the application: cancel the navigation and, when the user started it (a click), open an http, https or mailto URL with the system's default handler, such as the default browser. Other schemes, and navigations a script starts without a user gesture, are cancelled. WKWebView reports a script's click() on a link as a link activation, so on macOS a page script can open such a URL too.

Block

Block = 1

Cancel every navigation and new-window request outside the application's origins.

AllowInWindow

AllowInWindow = 2

Load other origins in the window, as before 0.10. A new-window request for an http or https URL loads it in this window too; no embedded window ever opens a second WebView window.