Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
- Promotions to Phase 2 (Stable in Prerelease)
- Bug fixes
- See also
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:
Highindicates that the app should prompt users to restart as soon as possible.Normalindicates that the app should remind users to restart, on a best-effort basis.
CoreWebView2EnvironmentClass:CoreWebView2RestartRequestedEventArgsClass:CoreWebView2RestartRequestedPriority Enum
CoreWebView2RestartRequestedPriority.NormalCoreWebView2RestartRequestedPriority.High
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).
CoreWebView2Class:CoreWebView2FrameClass:CoreWebView2ScreenCaptureStartingEventArgsClass:
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).
CoreWebView2Class:CoreWebView2SaveFileSecurityCheckStartingEventArgs Class
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.CancelSave Property
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.DocumentOriginUri Property
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.FileExtension Property
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.FilePath Property
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.SuppressDefaultPolicy Property
- CoreWebView2SaveFileSecurityCheckStartingEventArgs.GetDeferral Method
Bug fixes
Fixed Arm64 incompatibility with WindowsAppSDK 1.6.
Removed extra
WebView2Loader.dllin WinAppSDK case.Using
CoreWebView2.AddWebResourceRequestedFilterwithout aCoreWebView2WebResourceRequestSourceKindsparameter is now deprecated. See the .NET CoreWebView2.AddWebResourceRequestedFilter Method.