Release notes for WebView2 SDK

The WebView2 team updates the WebView2 SDK on a six-week cadence. Review the following content for up-to-date information on product announcements, additions, modifications, and breaking changes to the APIs.

Note

Make sure to re-compile your WebView2 app after updating the WebView2 SDK NuGet package. The WebView2 team recommends that you use the Canary preview channel of Microsoft Edge when you develop using a prerelease version of the WebView2 SDK package, and use the Evergreen WebView2 Runtime when you use a release version of the WebView2 SDK package. Canary is the recommended preview channel because it ships at the fastest cadence and has the newest APIs. For more information, navigate to Matching the Runtime version with the SDK version.

Note

WebView2 bug fixes are either Runtime-specific or SDK-specific.

Minimum version of the browser or Runtime to load WebView2

To load WebView2, the minimum version of Microsoft Edge or the WebView2 Runtime is 86.0.616.0. The minimum version to load WebView2 only changes when a breaking change occurs in the web platform.

To use a prerelease SDK along with a Microsoft Edge preview channel, navigate to Switch to a preview channel to test upcoming APIs and features.

1.0.992.28

Release Date: September 27, 2021

NuGet package for WebView2 SDK 1.0.992.28

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 94.0.992.31 or higher.

General

Bug Fixes

  • Fixed missing WebView2 DLLs (which led to initialization failure) when PlatformTarget isn't set in the user's .NET project. (#1061)

Promotions

The following items are now stable:

1.0.1018-prerelease

Release Date: September 20, 2021

NuGet package for WebView2 SDK 1.0.1018-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 95.0.1018.0 or higher.

General

Experimental Features

Bug fixes

  • Fixed a bug where WebView2 stops rendering when the app is spanning monitors and the monitor scale changes.
  • Fixed a bug where closing the download UI crashes WebView2 when multiple download windows are open. (#1723)
  • Fixed a build/initialization error when PlatformTarget isn't set in the user's .NET project. (#730 and #1548)

1.0.1010-prerelease

Release Date: September 14, 2021

NuGet package for WebView2 SDK 1.0.1010-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 95.0.1010.0 or higher.

General

  • WebView2 performance improvements.
  • Reliability fixes. (#1605 and #1678)
  • Added performance improvements during startup and when the host app is in the foreground.

Experimental Features

Bug fixes

  • Improved how host objects exceptions are caught in your JavaScript code.
  • Replaced WebView2 icon with a generic icon in DevTools windows.
  • Turn on the Tab screen sharing option when MediaDevices.getDisplayMedia() is used. (#1566)
  • Fixed a bug in the Client Certificate API, when the correct certificate was not selected. This is a Runtime change. (#1666)
  • Fixed bug where window.chrome.webview was unavailable in new windows in the same parent domain. This change is Runtime-specific. (#1144)
  • Fixed a bug where dropdown menus or lists were displayed behind the window that has focus. (#411)
  • Fixed focus issues when using put_IsVisible(false). (#238)
  • Fixed a bug to apply SetVirtualHostNameToFolderMapping to popup windows.
  • Fixed bugs where an IDispatch objects were returned as IUnknown.

Promotions

The following APIs are promoted to stable in this prerelease SDK:

  • IsSwipeNavigationEnabled.
  • BrowserProcessExited.
  • OpenBrowserTaskManager.

1.0.961.33

Release Date: September 8, 2021

NuGet package for WebView2 SDK 1.0.961.33

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 93.0.961.44 or higher.

General

Bug Fixes

  • Fixed a bug that caused ERR_SSL_CLIENT_AUTH_CERT_NEEDED errors. This is a Runtime change.
  • Fixed a bug that special browser keys like Refresh, Home, Back, and so on can't be turned off using AreBrowserAcceleratorKeysEnabled. This change is Runtime-specific.
  • Fixed a bug where the transparent background color isn't rendered.
  • Fixed a bug that caused a white flicker when loading WebView2.
  • Fixed a bug in WebView2 .NET controls where WebView2 windows were blank when created in the background. (#1077)
  • Fixed a bug where settings were not updated when the user navigated to or a new window displayed about:blank pages. This is a Runtime change.

Promotions

The following items are now stable:

1.0.955-prerelease

Release Date: July 26, 2021

NuGet package for WebView2 SDK 1.0.955-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 93.0.967.0 or higher.

General

  • WebView2 performance improvements.
  • Added partial Event Tracing for Windows (ETW) support.
  • Removed Microsoft branding from edge://history.
  • New default Download UI.

Experimental Features

Bug fixes

  • Fixed bug that broke the edge://downloads and edge://history pages. This change is Runtime-specific.
  • Fixed bugs to improve reliability in the WebView2Loader.dll.
  • Fixed bug in which NewWindowRequested event handler launched two windows when handling links that use target=_blank.
  • Fixed a bug in WebView visual hosting that flickered before startup.
  • Fixed bug when add_WebResourceRequested didn't work on WebView2 controls created using add_NewWindowRequested. (#616)
  • Allow the host app to set foreground on a different application in response to events including NavigationStarting, AddHostObjectToScript methods, WebMessageReceived, and NewWindowRequested. (#1092)
  • Fix bug to trigger the PermissionRequested event for the microphone. This change is Runtime-specific.(#1462)
  • Fixed bug when ExecuteScriptAsync blocked after several successful runs. This change is Runtime-specific. (#1348)
  • Fixed bug preventing non-ASCII filenames from being used in ResultFilePath in DownloadStartingEventArgs. (#1428)
  • Fixed bug where the title bar on the default popup wasn't displayed completely. This change is Runtime-specific. (#1016)

Promotions

.NET

Bug fixes

  • Fixed an issue in WebView2 .NET API reference documentation that caused only the first exception to be displayed.
  • .NET core libraries are now built in release mode. To debug, ensure you clear the Just my code checkbox.
  • Fixed a bug that crashed WebView2 on forms with child forms. The child form, with the find in page bar open, caused WebView2 to crash when the child form was closed. (#1097)

1.0.902.49

Release Date: July 26, 2021

NuGet package for WebView2 SDK 1.0.902.49

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 92.0.902.49 or higher.

General

Bug Fixes

  • Fix bug that broke the IsBuiltInErrorPageEnabled property, which turned off the error page that's displayed when there's a navigation failure or render process failure. This change is Runtime-specific. (#634)
  • Fixed an issue where WebView2 controls took focus away from the user's focus.
  • Fixed bug when AddScriptToExecuteOnDocumentCreated didn't work on child windows. (#935)
  • Fixed a bug that caused inactive tabs to be automatically discarded. (#637)
  • Fixed a bug when a navigation event was interrupted by another navigation event resulting in the Navigation ID of NavigationCompleted events to be incorrect. (#1142)

Promotions

The following items are now in stable:

1.0.902-prerelease

Release Date: June 1, 2021

NuGet package for WebView2 SDK 1.0.902-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 92.0.902.0 or higher.

General

  • Improved WebView2 startup performance and disk footprint.

Experimental Features

  • Added IsSwipeNavigationEnabled property to enable or disable the ability of the end user to use swiping gesture on touch input enabled devices to navigate in WebView2.
  • Added BrowserProcessExited event.
  • Added add_ClientCertificateRequested API. It allows showing a client certificate dialog prompt if desired and enables access to required metadata to replace default client certificate dialog prompt.

Bug fixes

  • Fix a bug where mouse left click doesn't dismiss context menu. This change is Runtime-specific.
  • Fixed a bug where WebView2 creation fails when exe files for apps sharing the same user data folder have inconsistent version info.
  • Fixed a bug where special browser keys such as Refresh, Home, and Back can't be disabled by AreBrowserAcceleratorKeysEnabled. This change is Runtime-specific.
  • Fixed a bug in WebView2 .NET controls, where WebView2 windows are blank when created in the background. (#1077).
  • Dismissing a file picker dialog by pressing Enter or Esc no longer crashes WPF applications using WebView control. (#1099).
  • Fixed a bug that AllowSingleSignOnUsingOSPrimaryAccount doesn't work properly with WebView2 when a WebResourceRequested event handler is attached. This change is Runtime-specific. (#1183).
  • Downloading a file no longer breaks WebView2 DefaultBackgroundColor transparency. This change is Runtime-specific. (#1108).
  • Removed screen sharing media picker message that contains Microsoft branding. (#940).
  • Fixed a bug in WebView2 WinForm control where hiding the parent form doesn't hide the WebView2 control (#828 and #1079).
  • Added static WS_CLIPCHILDREN style to WebView2's WPF windows. (#1013).
  • Fixed a bug where right-clicking a link crashes the WebView2 host app. This change is Runtime-specific.
  • Fixed a reliability bug that could crash the host app process when moving to a newer Edge WebView2 Runtime version.
  • DEPRECATION: Officially deprecated the DefaultBackgroundColor API for Windows 7.

Promotions

  • Download API is now promoted to stable.
  • PinchZoom API is now promoted to stable.
  • AddFrameCreated is now promoted to stable.
  • AddHostObjectToScriptWithOrigins API promoted to stable with iFrame element support.
  • Autofill API is now promoted to stable.

    Note

    There is no current API to delete the locally stored general autofill and password autosave information. Please provide a control to delete the data, which will involve deleting the entire User Data Folder.

.NET

Bug fixes

  • Fixed a bug in WebView2 WinForm control where WebView2 window visibility is not updated properly after parent window is disposed. (#1282 and #828).
  • Fixed a bug in WebView2 WPF control that Source property binding in WPF OneWay binding mode is not working properly. (#619 and #608).

1.0.864.35

Release Date: May 31, 2021

NuGet package for WebView2 SDK 1.0.864.35

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 91.0.864.35 or higher.

General

Bug Fixes

  • Fixed a reliability bug that could crash the host app process when moving to a newer Edge WebView2 Runtime version.
  • Fixed a bug that prevented memory purge in some situations. This change is Runtime-specific.
  • Fixed error in 818 SDK release package where project couldn't find the WebView2.h file. (#1209).
  • Fixed a bug which caused WebResourceRequested event to be dropped for some requests with binary bodies.
  • Improve NewWindowRequested documentation. (#448).

Promotions

.NET

Bug Fixes

  • Fixed a bug in WebView2 .NET controls that first header is missing when iterating CoreWebView2WebResourceRequest headers collection. (#1123).

1.0.865-prerelease

Release Date: April 26, 2021

NuGet package for WebView2 SDK 1.0.865-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 91.0.865.0 or higher.

General

Experimental Features

  • Added IsPinchZoomEnabled setting. It allows you to turn on or off page scale zoom control in a setting.
  • Added Custom add_DownloadStarting API. It allows you to block downloads, save to a different path, and access the required metadata to build custom download UI.
  • Added iframe element support from AddHostObjectToScriptWithOrigins.
  • Added sample code for WPF sample app to use the API to turn off browser function keys.
  • Added the UpdateRuntime API, to easily update the WebView2 Runtime.

Bug fixes

  • Fixed handler for a Chromium DevTools Protocol message with POST binary data in WebView2.
  • Turned off the OpenSaveAsAwareness download UI, because it included links to edge://settings. (#1120).
  • Removed branding from screen share dialog. (#940).
  • Fixed bug where the SetWindowDisplayAffinity function broke WebView2 when it stopped screen capture in an WebView2 app. (#841).
  • Fixed bug for composition hosting where mouse input stopped working if any pen input was sent to WebView2.
  • Fixed bug that broke mouse input after any pen input. This change is Runtime-specific.

.NET

Experimental Features

  • Added WebView2 designer tool to WPF Toolbox. (#210).
  • Added WebView2 UI element in .NET Designer Mode.

Bug fixes

  • Improved COM Exception descriptions by wrapping each in a more detailed .NET exception. (#338). This change is Runtime-specific.
  • Fixed bug caused when you select Tab to shift focus caused WebView2 control to crash in Microsoft Visual Studio Tools for Office. (#589 and #933). This change is Runtime-specific.
  • Improved .NET framework loader down level to be more robust. (#946).
  • Fixed bug that caused crash when you try to refresh before first navigation completed. (#1011).
  • Fixed initialization so navigation occurs during CoreWebView2InitializationCompleted. (#1050).
  • Improved .NET browser process crash error handling. You may now recreate controls after you handle a ProcessFailed event without a crash. (#996).

1.0.818.41

Release Date: April 21, 2021

NuGet package for WebView2 SDK 1.0.818.41

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 90.0.818.41 or higher.

General

Features

  • Extended the ProcessFailed event. It now raises for non-renderer child processes and frame renderers.
  • Added iframe element support for AddScriptToExecuteOnDocumentCreated.
  • Improved WebView2 code to be more resilient to .exe application files with malformatted version information. (#850).
  • Removed --winhttp-proxy-resolver from WebView browser process command-line, turned on other proxy command-line options for WebView2.

1.0.824-prerelease

Release Date: March 8, 2021

NuGet package for WebView2 SDK 1.0.824-prerelease

For full API compatibility, this prerelease version of the WebView2 SDK requires Microsoft Edge version 91.0.824.0 or higher.

General

Features

  • Extended the ProcessFailed event. It now raises for non-renderer child processes and frame renderers.
  • Added experimental AreBrowserAcceleratorKeysEnabled setting. You may prevent the browser from responding to keyboard shortcuts related to navigation, printing, saving, and other browser-specific functions.
  • Added iframe element support for AddScriptToExecuteOnDocumentCreated.

Promotion

Bug fixes

  • Expanded supported C++ and .NET project types such as MFC and ATL. (#506, #669, and #851).
  • Fixed a bug that Evergreen WebView2 Runtime leaks Inbound firewall entry.
  • Fixed setting Response during WebResourceRequested event. (#568).
  • Fixed a bug that navigating to edge:// causes browser process to exit. (#604).
  • Fixed a bug that limited WebView2 bounds to size of screen in Visual Hosting mode.

1.0.774.44

Release Date: March 8, 2021

NuGet package for WebView2 SDK 1.0.774.44

For full API compatibility, this version of the WebView2 SDK requires WebView2 Runtime version 89.0.774.44 or higher.

General

Features

  • Turned off various Microsoft Edge browser services in WebView2.
  • Visual Hosting APIs are now Generally Available.

Promotions

Bug fixes

  • Fixed a bug that limited WebView2 bounds to size of screen in Visual Hosting mode.

1.0.790-prerelease

Release Date: February 10, 2021

NuGet package for WebView2 SDK 1.0.790-prerelease

This prerelease version of the WebView2 SDK requires Microsoft Edge version 86.0.616.0 or higher.

General

Important

Breaking Change: WebView2 prerelease package 1.0.781 is deprecated. Discontinue development with package 1.0.781.

Important

WebView2 prerelease package 0.9.430 is deprecated, and is removed with the next release. If your WebView app uses the package, the WebView2 team recommends that you move to a newer package.

Features

Bug fixes

  • Turned off the Microsoft Edge Shopping feature in WebView2.
  • Turned off the context menu in the PDF viewer when AreDefaultContextMenusEnabled is false. (#605).
  • Fixed a bug that returned E_NOINTERFACE when querying ICoreWebView2 for ICoreWebView2Experimental. (#691).
  • Fixed a bug that allowed navigation with malformed URIs when CoreWebView2NavigationStartingEventArgs.Cancel is set to false. (#400).
  • Fixed a bug that blocked window.print() on pop-up windows with event handlers attached to NewWindowRequested events. (#409).
  • Fixed Dynamic DPI issue when moving apps between different monitors. (#58)
  • Improved the HRESULT instances passed by ICoreWebView2WebResourceResponseViewGetContentCompletedHandler::Invoke.
  • Turned off autofill manage button. (#585).
  • Fixed Visual Studio crashes while you run WebView2.Dispose when hosted in multiple windows. (#816) and #442).
  • Fixed bug to display WebView2 control in Visual Studio Toolbox. (#210).
  • Reduced high CPU usage issues. (#878).
  • Fixed issues with deprecated 1.0.781-prerelease package. (#875 and #878).

Promotions

.NET

Bug fixes

  • Fixed bug that crashed WebView apps that use the WPF SDK. The crash occurred when you selected F4 to close a window. (#399).
  • The WebView2 initialization screen is now transparent, instead of gray. (#196).

1.0.705.50

Release Date: January 25, 2021

NuGet package for WebView2 SDK 1.0.705.50

This version of the WebView2 SDK requires WebView2 Runtime version 86.0.616.0 or higher.

General

Promotions

1.0.721-prerelease

Release Date: December 8, 2020

NuGet package for WebView2 SDK 1.0.721-prerelease

This prerelease version of the WebView2 SDK requires Microsoft Edge version 86.0.616.0 or higher.

General

Important

Breaking Change: WebView2 prerelease package 1.0.707 and package 0.9.628 are deprecated. Discontinue development with package 1.0.707 and package0.9.628.

Features

.NET

Features

Bug fixes

  • Added AcceleratorKeyPressed event to support AcceleratorKey select in WebView2. (#288).
  • Removed unnecessary files from being output to WebView2 folders. (#461).
  • Improved host object API. (#335 and #525).

1.0.664.37

Release Date: November 20, 2020

NuGet package for WebView2 SDK 1.0.664.37

This version of the WebView2 SDK requires WebView2 Runtime version 86.0.616.0 or higher.

General

Important

Announcement: .NET WPF/WinForms WebView2 SDKs are now Generally Available (GA). Starting with this release, Release SDKs are forward-compatible. For more details, navigate to GA announcement blog post.

Features

  • .NET WPF/WinForms WebView2 is now Generally Available (GA).
  • Fixed Distribution (Bring-your-own) mode reached GA.

.NET

Bug fixes

  • CoreWebView2NewWindowRequestedEventArgs.Handled prevents new window from being opened. (#549 and #560).

1.0.674-prerelease

Release Date: October 19, 2020

NuGet package for WebView2 SDK 1.0.674-prerelease

This prerelease version of the WebView2 SDK requires WebView2 Runtime version 86.0.616.0 or higher.

General

.NET

1.0.622.22

Release Date: October 19, 2020

NuGet package for WebView2 SDK 1.0.622.22

This version of the WebView2 SDK requires WebView2 Runtime version 86.0.616.0 or higher.

General

Important

Announcement: Win32 C/C++ WebView2 is now Generally Available (GA). Starting this release, Release SDKs are forward-compatible. For more information, navigate to GA announcement blog post.

  • The Evergreen WebView2 Runtime and installer are GA. The bootstrapper, the downlink link for the Bootstrapper, and the Standalone Installer for the Evergreen WebView2 Runtime are available on Microsoft Edge WebView2. Sample code for the installation workflow is also available in the WebView2Samples repo.
  • Fixed Version mode is available for developer preview.

For more information about the Runtime, Evergreen distribution, and Fixed Version distribution, navigate to Distribute a WebView2 app and the WebView2 Runtime.

0.9.622.11

Release Date: September 10, 2020

NuGet package for WebView2 SDK 0.9.622.11

This version of the WebView2 SDK requires WebView2 Runtime version 86.0.616.0 or higher.

General

  • Important

    Announcement: This SDK is the Release Candidate for WebView2 Win32 C/C++ GA. The GA version is expected to use the same API interface and functionality.

  • Disconnected browser policies.

  • Added AllowSingleSignOnUsingOSPrimaryAccount property on WebView2 environment options to turn on conditional access for WebView.

  • Updated ICoreWebView2NewWindowRequestedEventArgs to include WindowFeatures property, and the associated ICoreWebView2WindowFeatures. (#293).

  • Updated System.Windows.Rect to use System.Drawing.Rectangle instead of System.Windows.Rect (#235).

  • Updated NewWindowRequested event to handle window.open() request without parameters. (#293).

  • AdditionalBrowserArguments specified with ICoreWebView2EnvironmentOptions aren't overridden with environment variables or registry values. For more information, navigate to CreateCoreWebView2EnvironmentWithOptions.

0.9.579

Release Date: July 20, 2020

NuGet package for WebView2 SDK 0.9.579

This version of the WebView2 SDK requires Microsoft Edge version 86.0.579.0 or higher.

General

  • Important

    Announcement: Evergreen WebView2 Runtime and installer is released for preview. For more information, navigate to Distribute a WebView2 app and the WebView2 Runtime.

  • Important

    Announcement: The following WebView2 SDK Versions are no longer supported after the next SDK release.

    The WebView2 SDK Versions are also marked deprecated on nuget.org. WebView2 recommends staying up to date with the latest version of WebView2.

  • Added WebView worker thread improvements. (#318).

  • Turned off the popup blocker in WebView. For more information, navigate to the IsUserInitiated property in the NewWindowRequested event.

  • Ensured WebView navigation starting event is run for about:blank. Now, NavigationStarting events are run for all navigation, but cancellations for about:blank or srcdoc of the iframe element aren't supported and ignored.

  • Blocked some edge:// URI schemes in WebView.

  • Added experimental IsSingleSignOnUsingOSPrimaryAccountEnabled property on WebView2 environment options to turn on conditional access for WebView.

  • Added experimental WebResourceResponseReceived event that runs after the WebView receives and processes the response from a WebResource request. Authentication headers, if any, are included in the response object.

.NET

  • Improved WPF focus handling. (#185).
  • Added ZoomFactor property on WPF Webview2 Controller.

0.9.538

NuGet package for WebView2 SDK 0.9.538

This version of the WebView2 SDK requires Microsoft Edge version 85.0.538.0 or higher.

General

  • Dropping support for WebView2 SDK Version 0.8.149. WebView2 recommends staying up to date with the latest version of WebView2.
  • Updated group policy to account for when the profile path of the Microsoft Edge browser is modified (#179).

Win32 C/C++

.NET (0.9.538 prerelease)

0.9.515-prerelease

NuGet package for WebView2 SDK 0.9.515-prerelease

This prerelease version of the WebView2 SDK requires Microsoft Edge version 84.0.515.0 or higher.

  • Important

    Announcement: WebView2 now supports Windows Forms and WPF on .NET Framework 4.6.2 or later and .NET Core 3.0 or later in the prerelease package.

  • For more information about building WPF apps, navigate to the WPF Get Started Guide and the WebView2 WPF Reference for WPF-specific APIs.

  • For more information about building Windows Forms apps, navigate to Get started with WebView2 in WinForms apps and the WebView2 Windows Forms Reference for Windows Forms specific APIs.

  • For more information about the CoreWebView2 APIs, navigate to .NET Reference.

  • Caution

    Known Issues: The WebView2 team is aware of some issues in the prerelease that are being resolved in future releases.

    • DPI Awareness: WebView2 for WPF is currently not DPI aware. When initializing WebView2 on high DPI monitors, there is a known issue where the WebView at first initializes as a fraction of the window until the window is resized.
    • WPF Designer: The WPF designer is not currently supported. Add the WebView2 control in your app by directly modifying the appropriate XAML in a text editor.

0.9.488

NuGet package for WebView2 SDK 0.9.488

This version of the WebView2 SDK requires Microsoft Edge version 84.0.488.0 or higher.

0.9.430

NuGet package for WebView2 SDK 0.9.430

This version of the WebView2 SDK requires Microsoft Edge version 82.0.430.0 or higher.

The WebView2 SDK is the official Win32 C++ Beta version, which incorporates several feature requests from feedback. The WebView2 team tries to limit the number of releases with breaking changes. As general availability approaches, several major breaking changes are incorporated in the Beta release.

  • Important

    Breaking Change: As the final release approaches the WebView2 team renamed the prefix IWebView2WebView to ICoreWebView2 in order to make sure the WebView2 API aligns with the Windows API naming convention. Additionally, in order to leverage the WebView2 SDK from UI frameworks, the WebView2 team separated ICoreWebView2 into ICoreWebView2 and ICoreWebView2Host. ICoreWebView2Host supports resizing, showing-and-hiding, focusing, and other functionality related to windowing and composition. ICoreWebView2 supports all other WebView2 functionality. To learn more about incorporating the changes, navigate to the WebView2 pull request in the WebView2 APISample project.

  • Important

    Breaking Change: Split DocumentStateChanged into three components: SourceChanged, ContentLoading, and HistoryChanged. Now, when the source URL changes the SourceChanged event is run. When the history state is changed the HistoryChanged event is run. The ContentLoading event is run before the initial script when a new document is being loaded.

  • Added support for ARM64 architecture.

  • Added Soft Input Panel (SIP) support for touch screen devices.

  • Added support for Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, and Windows Server 2016.

  • Added NotifyParentWindowPositionChanged for the status bar to follow the window in windowed mode. Also, implement the change in windowless mode in order for accessibility features to work.

  • Added AreRemoteObjectsAllowed setting to globally control whether a webpage may be accessed by any remote objects. By default, AreRemoteObjectsAllowed is turned on, so remote objects added by AddRemoteObject are accessible from the webpage. When AreRemoteObjectsAllowed is turned off, the objects aren't accessible from the webpage. Changes are applied on the next navigation event.

  • Added IsZoomControlEnabled setting to prevent users from impacting the zoom of the WebView using ctrl++ and ctrl+- (or ctrl+ mouse wheel). Zoom may still be set using put_ZoomFactor when the setting is turned off.

  • Changed ZoomFactor to only apply to the current WebView. Zoom changes to the current WebView don't affect other WebViews that you navigated to using the same site of origin. For more information, navigate to get_ZoomFactor.

  • Hid ZoomView UI for WebView (#95).

  • Added SetBoundsAndZoomFactor. Now, you may set the zoom factor and bounds of a WebView at the same time.

  • Added WindowCloseRequested event. For more information, navigate to add_WindowCloseRequested (#119).

  • Added support for the beforeunload dialog type for JavaScript dialog events and added CORE_WEBVIEW2_SCRIPT_DIALOG_KIND_BEFOREUNLOAD enum entry.

  • Added GetHeaders to HttpRequestHeaders, GetHeader to HttpResponseHeaders, and get_HasCurrentHeader property to HttpHeadersCollectionIterator.

  • Important

    Breaking Change: Modified DevToolsProtocolEventReceived behavior. Now, you may create a DevToolsProtocolEventReceiver for a particular DevTools Protocol event and subscribe/unsubscribe to such event using add_DevToolsProtocolEventReceived/remove_DevToolsProtocolEventReceived.

  • Important

    Breaking Change: Changed WebMessageReceivedEventArgs get_WebMessageAsString property to a TryGetWebMessageAsString method.

  • Important

    Breaking Change: Changed AcceleratorKeyPressedEventArgs Handle method to a get_Handled property.

0.8.355

NuGet package for WebView2 SDK 0.8.355

This version of the WebView2 SDK requires Microsoft Edge version 80.0.355.0 or higher.

  • Released WebView2API Sample, a comprehensive guide of the WebView2 SDK. For more information, navigate to API Sample.
  • Added IME support for all languages besides English (#30).
  • Updated the API surface of the WebResourceRequested event in response to bug reports. Simultaneously specifying a filter and an event on creation is now deprecated. To create a web resource requested event, use add_WebResourceRequested to add the event and AddWebResourceRequestedFilter to add a filter. RemoveWebResourceRequestedFilter removes the filter (#36) (#74).
  • Important

    Breaking Change: Modified fullscreen behavior. Deprecated IsFullScreenAllowed. Now, by default, if an element in a WebView (such as a video) is set to full screen, it fills the bounds of the WebView. Use the ContainsFullScreenElementChanged event and get_ContainsFullScreenElement to specify how the app should resize the WebView if an element wants to enter fullscreen mode.

0.8.314

NuGet package for WebView2 SDK 0.8.314

This version of the WebView2 SDK requires Microsoft Edge version 80.0.314.0 or higher.

Changes

  • Added support for Windows 7, Windows 8, and Windows 8.1.

  • Added Visual Studio and Visual Studio Code debug support for WebView2. Now, debug your script in the WebView2 right from your IDE. For more information, navigate to How to debug when developing with WebView2 controls.

  • Added Native Object Injection for the running script in WebView2 to access an IDispatch object from the Win32 component of the app and access the properties of the IDispatch object. For more information, navigate to AddRemoteObject (#17).

  • Added AcceleratorKeyPressed event. For more information, navigate to add_AcceleratorKeyPressed (#57).

  • Turned off the Context Menus. For more information, navigate to put_AreDefaultContextMenusEnabled (#57).

  • Updated DPI Awareness. Now, the DPI awareness of WebView is the same as the DPI awareness of the host app.

    Note

    If another hybrid app is launched with a different DPI Awareness than the original WebView, the new WebView is not launched if the user data folder is the same (#1).

  • Updated Notification Change Behavior so WebView2 automatically rejects notification permission requests prompted by web content hosted in the WebView.

0.8.270

NuGet package for WebView2 SDK 0.8.270

This version of the WebView2 SDK requires Microsoft Edge version 78.0.270.0 or higher.

Changes

  • Added DocumentTitleChanged event to indicate document title change (#27).

  • Added GetWebView2BrowserVersionInfo API (#18).

  • Added NewWindowRequested event.

  • Updated CreateWebView2EnvironmentWithDetails function to remove releaseChannelPreference. For more information about the CreateWebView2EnvironmentWithDetails function, navigate to CreateWebView2EnvironmentWithDetails. The registry and environment variable override is still supported. The default channel preference is used unless overridden. During the channel search, the WebView2 team skips any previous channel version that isn't compatible with the WebView2 SDK. The WebView2 team selects the more stable channel to ensure the most consistent behaviors for the end user. When you test with the latest Canary build, you should create a script to set the WEBVIEW2_RELEASE_CHANNEL_PREFERENCE environment variable to 1 before launching the app. For more information, navigate to Switch to a preview channel to test upcoming APIs and features.

  • Updated the CreateWebView2EnvironmentWithDetails function with logic for selecting userDataFolder when not specified. For more information about the CreateWebView2EnvironmentWithDetails function, navigate to CreateWebView2EnvironmentWithDetails. If you previously used the default userDataFolder location, when you switch to the new SDK the default userDataFolder is reset (set to a new location in the host code directory) and your state is also reset. If the host process doesn't have permission to write to the specified directory, the CreateWebView2EnvironmentWithDetails function may fail. You may copy the data from the old user data folder to the new directory.

0.8.230

NuGet package for WebView2 SDK 0.8.230

This version of the WebView2 SDK requires Microsoft Edge version 77.0.230.0 or higher.

Changes

  • Added Stop API to stop all navigation and pending resource fetches (#28).
  • Added .tlb file to the NuGet package (#22).
  • Added .NET projects to the installer list in the NuGet package (#32).

0.8.190

NuGet package for WebView2 SDK 0.8.190

This version of the WebView2 SDK requires Microsoft Edge version 77.0.190.0 or higher.

  • Added get_AreDevToolsEnabled/put_AreDevToolsEnabled to control if users can open DevTools (#16).
  • Added get_IsStatusBarEnabled/put_IsStatusBarEnabled to control if the status bar is displayed (#19).
  • Added get_CanGoBack/GoBack/get_CanGoForward/GoForward for going back and forward through navigation history.
  • Added HTTP header types (IWebView2HttpHeadersCollectionIterator/IWebView2HttpRequestHeaders/IWebView2HttpRequestHeaders) for viewing and modifying HTTP headers in WebView.
  • Added 32-bit WebView support on 64-bit machines (#13).
  • Added WebView IDL to the SDK (#14).
  • Added lib to support IID\_\* interface ID objects (#12).
  • Added include path, linking, and autocopying of DLL files to NuGet TARGET file in SDK.
  • Turned on requesting window.open() in script.

0.8.149

NuGet package for WebView2 SDK 0.8.149

This version of the WebView2 SDK requires Microsoft Edge version 76.0.149.0 or higher.

Initial developer preview release.

See also