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: Aug. 7, 2024.
NuGet package for WebView2 SDK 1.0.2730-prerelease
For full API compatibility, this Prerelease version of the WebView2 SDK requires the WebView2 Runtime that ships with Microsoft Edge version 128.0.2730.0 or later; see Runtime 128.0.2739.15 (Aug. 26, 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.
Throttling Controls APIs
Added new Throttling Controls APIs which allows for efficient resource management by allowing you to throttle JavaScript timers. This is helpful in scenarios where a WebView2 control needs to remain visible, but needs to consume fewer resources (such as when the user isn't interacting with the content). These Throttling Controls APIs allow you to:
Customize script timers (
setTimeoutandsetInterval) throttling under different page states (foreground, background, and background with intensive throttling).Throttle script timers in select hosted iframes.
CoreWebView2FrameClass:CoreWebView2SettingsClass:
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.
SaveAs APIs to programmatically perform Save as
Added SaveAs APIs that allow you to programmatically perform the Save as operation. You can use these APIs to block the default Save as dialog, and then either save silently, or build your own UI for Save as.
These APIs pertain only to the Save as dialog, not the Download dialog, which continues to use the existing Download APIs.
Previous phase: SaveAs APIs to programmatically perform Save as in Prerelease SDK 1.0.2526-prerelease, for Runtime 125 (Apr. 22, 2024).
CoreWebView2Class:-
DefaultHtmlOnlySingleFileComplete
CoreWebView2SaveAsUIResult Enum
SuccessInvalidPathFileAlreadyExistsKindNotSupportedCancelled
CoreWebView2SaveAsUIShowingEventArgs Class
- CoreWebView2SaveAsUIShowingEventArgs.AllowReplace Property
- CoreWebView2SaveAsUIShowingEventArgs.Cancel Property
- CoreWebView2SaveAsUIShowingEventArgs.ContentMimeType Property
- CoreWebView2SaveAsUIShowingEventArgs.Kind Property
- CoreWebView2SaveAsUIShowingEventArgs.SaveAsFilePath Property
- CoreWebView2SaveAsUIShowingEventArgs.SuppressDefaultDialog Property
- CoreWebView2SaveAsUIShowingEventArgs.GetDeferral Method
Web notification handling, for non-persistent notifications
Added support for Web Notification, for non-persistent notifications. The NotificationReceived event for CoreWebView2 controls web notification handling, allowing customization or suppression by the host app. Unhandled notifications default to WebView2's UI.
Previous phase: Desktop notifications through WebView2 in Prerelease SDK 1.0.1988-prerelease, for Runtime 117 (Jul. 24, 2023).
Bug fixes
Adding the missing WinRT
CoreWebView2Notification.VibrationPatternAPI. This WinRT API can be combined with the stable notification API promotion release notes; see "Web Notification" andNotificationReceivedfor WinRT, immediately above.Fixed an issue where
KeyDownevents from the WinForms WebView2 control didn't include the correctModifierKeysinformation. (Issue #1216)Fixed x86 for WinRT C# projection.
Made
CreateCoreWebView2EnvironmentandGetAvailableCoreWebView2BrowserVersionStringmore robust against potential race condition during Runtime update.