Edit

Prerelease SDK 1.0.1248-prerelease, for Runtime 102 (May 9, 2022)

Release notes for Microsoft Edge WebView2 Prerelease SDK, release date: May 9, 2022.

NuGet package for WebView2 SDK 1.0.1248-prelease

For full API compatibility, this Prerelease version of the WebView2 SDK requires the WebView2 Runtime that ships with Microsoft Edge version 102.0.1248.0 or later; see Runtime 102.0.1245.22 (Jun. 14, 2022).

General features

  • Added support for WinRT Object projection into JavaScript by adding WinRT JS Projection tool (wv2winrt) in NuGet package. For instructions about using the WinRT JS Projection tool see Call native-side WinRT code from web-side code.

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.

Server Certificate API

The Server Certificate API provides an option to trust the server's TLS certificate at the application level and render the page without prompting the user about TLS or providing the ability to cancel the web request.

Previous phase: Server Certificate API in Prerelease SDK 1.0.1222-prerelease, for Runtime 102 (Apr. 12, 2022).

ClearBrowsingData API

Use the ClearBrowsingData API to programmatically clear specific data types for a duration:

  • clearBrowsingDataInTimeRange
  • clearBrowsingDataAll

Bug fixes

  • Fixed an unavoidable crash that occurred in the WPF control's OnWindowPositionChanged event. (Issue #1531)

  • Fixed the issue with CoreWebView2EnvironmentOptions.ExclusiveUserDataFolderAccess not working properly in .NET SDK. (Issue #2363)

  • Fixed an issue where WebView2 content can become blurry when moving between monitors with different scaling.

  • Fixed a regression to make sure that WebView2 creation fails quickly with HRESULT_FROM_WIN32(ERROR_INVALID_STATE) instead of time out.

  • Fixed a bug where changes from Chromium broke WebView2 background color.

See also