WebView2 SDK release notes

Release notes for WebView2 SDK.

0.8.314

NuGet package | minimum Microsoft Edge version 80.0.314.0.

Re-compile your app after updating the NuGet package.

  • Added support for Windows 7, Windows 8/8.1.
  • Added Visual Studio and Visual Studio Code debug support for WebView2. Now, you can debug your script in the WebView2 right from your IDE. Click here for more details.
  • Added Native Object Injection, which allows the script running within WebView2 to be passed an IDispatch object from the Win32 component of the application and access the IDispatch object's properties. See AddRemoteObject for more details. (#17).
  • Added AcceleratorKeyPressed event. See add_AcceleratorKeyPressed for more details. (#57).
  • Disabled Context Menus. See put_AreDefaultContextMenusEnabled for more details (#57).
  • Updated DPI Awareness. Now, the WebView's DPI awareness will be the same as its host application's DPI awareness. Note, if another hybrid application is launched with a different DPI Awareness than the original WebView, the new WebView will not be launched if the user data directory is the same (#1).
  • Updated Notification Change Behavior so WebView2 automatically rejects notification permission requests prompted by web content hosted within the WebView.

0.8.270

NuGet package | minimum Microsoft Edge version 78.0.270.0.

Re-compile your app after updating the NuGet package.

  • Added DocumentTitleChanged event to indicate document title change (#27).
  • Added GetWebView2BrowserVersionInfo API (#18).
  • Added NewWindowRequested event.
  • Updated CreateWebView2EnvironmentWithDetails function to remove releaseChannelPreference. See CreateWebView2EnvironmentWithDetails function for more details. The registry and environment variable override is still supported. The default channel preference is used unless overridden.
    During the channel search, we skip any older channel version that is not compatible with the WebView2 SDK.
    We select the more stable channel to ensure the most consistent behaviors for the end user. When you test with latest Canary builds, you should create a script to set environment variable WEBVIEW2_RELEASE_CHANNEL_PREFERENCE to 1 before launching the app.
  • Updated CreateWebView2EnvironmentWithDetails function with logic for selecting userDataFolder when not specified. See CreateWebView2EnvironmentWithDetails function for more details. 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 does not have permission to write to the specified directory, CreateWebView2EnvironmentWithDetails may fail. You may copy the data from the old user data directory to the new directory.

0.8.230

NuGet package | minimum Microsoft Edge version 77.0.230.0.

Re-compile your app after updating the NuGet package.

  • 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 | minimum Microsoft Edge version 77.0.190.0.

Re-compile your app after updating the NuGet package.

  • Added get_AreDevToolsEnabled/put_AreDevToolsEnabled to control if users are able to 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 auto-copying of DLL files to NuGet TARGET file in SDK.
  • Enabled requesting window.open in script.

0.8.149

NuGet package | minimum Microsoft Edge version 76.0.149.0.

Initial developer preview release.