The engine for the WebBrowser control is changed from Chromium Embedded Framework (CEF) to Microsoft Edge WebView2. There are changes to the existing functions, events and runtime files:
-
Changes to the existing functions
WebView2 and CEF support different arguments for the global functions WebBrowserSet and WebBrowserGet.
For a complete list of arguments supported by WebView2, please refer to the 2022 R2 doc: https://docs.appeon.com/pb2022r2/pbug/ch04s05s04.html.
For a complete list of arguments supported by CEF, please refer to the 2022 doc: https://docs.appeon.com/pb2022/pbug/ch04s05s02.html.
-
Changes to the existing events
To work with WebView2, the following events have been adjusted: AddressChange, DownloadingStateChanged, DownloadingStart, EvaluateJavascriptFinished, NavigationStart, PdfPrintFinished.
-
New distribution modes
WebView2 Runtime supports two distribution modes: Evergreen Runtime and Fixed Version. For more information about WebView2 distribution modes, please refer to the section called “Working with WebBrowser” in Users Guide.
-
Changes to runtime files
The following runtime files/folder have been changed or added to support WebView2 Runtime.
For Evergreen Runtime:
-
pbwebbrowser.dll (changed)
-
webbrowserapi.tlb (newly added)
For Fixed Version:
-
pbwebbrowser.dll (changed)
-
webbrowserapi.tlb (newly added)
-
all the files in the "PBWebView2" folder (newly added)
-