Edit

Prerelease SDK 1.0.2730-prerelease, for Runtime 128 (Aug. 7, 2024)

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)

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 (setTimeout and setInterval) throttling under different page states (foreground, background, and background with intensive throttling).

  • Throttle script timers in select hosted iframes.

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).

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.VibrationPattern API. This WinRT API can be combined with the stable notification API promotion release notes; see "Web Notification" and NotificationReceived for WinRT, immediately above.

  • Fixed an issue where KeyDown events from the WinForms WebView2 control didn't include the correct ModifierKeys information. (Issue #1216)

  • Fixed x86 for WinRT C# projection.

  • Made CreateCoreWebView2Environment and GetAvailableCoreWebView2BrowserVersionString more robust against potential race condition during Runtime update.

See also