Edit

Prerelease SDK 1.0.2895-prerelease, for Runtime 131 (Oct. 21, 2024)

Release notes for Microsoft Edge WebView2 Prerelease SDK, release date: Oct. 21, 2024.

NuGet package for WebView2 SDK 1.0.2895-prerelease

For full API compatibility, this Prerelease version of the WebView2 SDK requires the WebView2 Runtime that ships with Microsoft Edge version 131.0.2895.0 or later; see Runtime 131.0.2903.40 (Nov. 18, 2024).

Detailed contents:

Experimental APIs (Phase 1: Experimental in Prerelease)

The following Experimental APIs have been added in this Prerelease SDK.

RestartRequested event when WebView2 needs to restart

Added a new RestartRequested event. The RestartRequested event is raised whenever WebView2 needs to restart to apply updates or configuration changes. You can use this API to detect when WebView2 needs to restart, and take appropriate actions. The Priority property of the RestartRequested event arguments indicates the priority of the restart request:

  • High indicates that the app should prompt users to restart as soon as possible.
  • Normal indicates that the app should remind users to restart, on a best-effort basis.

Promotions to Phase 2 (Stable in Prerelease)

The following APIs have been promoted from Phase 1: Experimental in Prerelease, to Phase 2: Stable in Prerelease, and are included in this Prerelease SDK.

Control whether the screen capture UI is shown (ScreenCaptureStarting event)

Added a new ScreenCaptureStarting event. This event is raised whenever the WebView2 and/or iframe that corresponds to the CoreWebView2Frame (or to any of its descendant iframes) requests permission to use the Screen Capture API before the UI is shown. The app can then block the UI from being displayed, or allow the UI to be displayed.

Previous phase: Control whether the screen capture UI is shown (ScreenCaptureStarting event) in Prerelease SDK 1.0.2646-prerelease, for Runtime 128 (Jun. 19, 2024).

Configure the security warning when saving a file (SaveFileSecurityCheckStarting event)

Added a new SaveFileSecurityCheckStarting event. Your app can register a handler on this event to get the file path, filename extension, and document origin URI information. You can then apply your own rules to do actions such as the following:

  • Allow saving the file without presenting a default security-warning UI about the file-type policy.
  • Cancel the saving.
  • Create your own UI to manage runtime file-type policies.

Previous phase: Configure the security warning when saving a file (SaveFileSecurityCheckStarting event) in Prerelease SDK 1.0.2646-prerelease, for Runtime 128 (Jun. 19, 2024).

Bug fixes

  • Fixed Arm64 incompatibility with WindowsAppSDK 1.6.

  • Removed extra WebView2Loader.dll in WinAppSDK case.

  • Using CoreWebView2.AddWebResourceRequestedFilter without a CoreWebView2WebResourceRequestSourceKinds parameter is now deprecated. See the .NET CoreWebView2.AddWebResourceRequestedFilter Method.

See also