Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

WebView4Delphi updates

User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1245.22

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1245.22

This is what's new in the WebView Runtime :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/release-notes#10124522

This is what's new in WebView4Delphi :
  • Added TWVBrowserBase.OnServerCertificateErrorActionsCompleted
  • Added TWVBrowserBase.OnServerCertificateErrorDetected
  • Added TWVBrowserBase.OnClearBrowsingDataCompleted
  • Added TWVBrowserBase.ClearBrowsingData
  • Added TWVBrowserBase.ClearBrowsingDataInTimeRange
  • Added TWVBrowserBase.ClearBrowsingDataAll
  • Added TCoreWebView2ServerCertificateErrorDetectedEventArgs
  • Added TCoreWebView2Certificate
  • Added LoggedQueryInterface
  • All calls to QueryInterface have been replaced by LoggedQueryInterface to detect if some interface wasn't available.
  • Added TCoreWebView2ClearBrowsingDataCompletedHandler
  • Added TCoreWebView2ClearServerCertificateErrorActionsCompletedHandler
  • Added TCoreWebView2ServerCertificateErrorDetectedEventHandler
  • GlobalWebView2Loader now checks the WebView Runtime version and it adds a warning in the log if it's too old.
Microsoft released the new WebView2 NuGet version before updating all Windows installations and some computers still have an old WebView Runtime version.

If this is your case, some WebView4Delphi features won't work and you'll see a warning in the log and some messages about QueryInterface calls that failed.

Download a fixed version of the runtime if you want to test the new WebView4Delphi features. Decompress the CAB file and edit this line in the MiniBrowser demo in order to use the new runtime :
https://github.com/salvadordf/WebView4Delphi/blob/82e47ccb20f29b680e8989efdeddf0c34d2459c2/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L879
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1264.42

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1264.42

This is what's new in the WebView Runtime :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10126442

This is what's new in WebView4Delphi since the last announcement:
  • Fixed high DPI issue in FMXTabbedBrowser.
  • Added TCoreWebView2Cookie.ExpiresDate.
  • Fix various internal loader issues to make it behave more like the "official" WebView2Loader. Thanks to hhonisch.
  • Fix handling empty environment variables. Thanks to hhonisch.
  • Fix handling empty registry keys/values. Thanks to hhonisch.
  • Fix determining AppUserModeId. Thanks to hhonisch.
This is a weird release because Microsoft didn't change the API. Regardless of what the release notes say, there are no changes in the type library. :shock:

I decided to update WebView4Delphi in order to use the latest loader DLL anyway.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1293.44

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1293.44

This is what's new in the WebView Runtime :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10129344

This is what's new in WebView4Delphi since the last announcement:
  • Added TWVBrowserBase.ClearServerCertificateErrorActions
  • Added TWVBrowserBase.GetFavicon
  • Added TWVBrowserBase.FaviconURI
  • Added TWVBrowserBase.OnFaviconChanged
  • Added TWVBrowserBase.OnGetFaviconCompleted
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1343.22

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1343.22

These are the official release notes :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10134322

This time WebView2 doesn't have any new features in the API, only new Loader DLLs.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1370.28

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1370.28

These are the official release notes :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10137028

This is what's new in WebView4Delphi since the last announcement:
  • TWVBrowserBase.DragEnter
  • TWVBrowserBase.DragLeave
  • TWVBrowserBase.DragOver
  • TWVBrowserBase.Drop
WebView2 now supports the drag and drop API for the Windowless mode. I implemented all the code changes in the Delphi_VCL/WindowlessBrowser demo but I see some issues that I can reproduce with the official WebView2APISample demo.
Other developers reported those issues in the official WebView2Feedback repository.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: WebView4Delphi updates

Post by salvadordf »

Hi,

I just updated WebView4Delphi with some major changes needed for the Delphi 7 support.

I could replicate most of the modifications from CEF4Delphi but I don't have a Delphi 7 license and I had to ask for several favors in order to check incompatibilities.

Older Delphi versions should open the WebView4Delphi.dpk package instead of WebView4Delphi_group.groupproj in order to install WebView4Delphi.

The /demos/Delphi_VCL/SimpleBrowser demo has a new project file for older Delphi versions.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1418.22

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1418.22

These are the official release notes :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10141822

This is what's new in WebView4Delphi since the last announcement:
  • Added Delphi 7, 8, 2005, 2006, 2007, 2009, 2010 and XE support.
  • Added the COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED constant to the type library.
  • Added the COREWEBVIEW2_PDF_TOOLBAR_ITEMS_FULL_SCREEN constant to the type library.
  • Added the COREWEBVIEW2_PDF_TOOLBAR_ITEMS_MORE_SETTINGS constant to the type library.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1462.37

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1462.37

These are the official release notes :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10146237

This time WebView2 doesn't have any new features in the API, only new Loader DLLs.

Microsoft decided to update the NuGet package before updating the WebView2 runtime binaries. I guess the binaries will be updated shortly.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1518.46

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1518.46

These are the official release notes :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10151846

This is what's new in WebView4Delphi since the last announcement:
  • Added TWVBrowserBase.ShowPrintUI
  • TWVBrowserBase.Print now uses the new WebView2 API instead of executing JavaScript code to print the page.
  • Added TWVBrowserBase.PrintToPdfStream
  • Added TWVBrowserBase.CustomCrashReportingEnabled
  • Modified the parameters in the TWVBrowserBase.OnPrintCompleted event.
  • Added TWVBrowserBase.OnPrintToPdfStreamCompleted
  • Added TCoreWebView2PrintSettings.PageRanges
  • Added TCoreWebView2PrintSettings.PagesPerSide
  • Added TCoreWebView2PrintSettings.Copies
  • Added TCoreWebView2PrintSettings.Collation
  • Added TCoreWebView2PrintSettings.ColorMode
  • Added TCoreWebView2PrintSettings.Duplex
  • Added TCoreWebView2PrintSettings.MediaSize
  • Added TCoreWebView2PrintSettings.PrinterName
  • Added GlobalWebView2Loader.CustomCrashReportingEnabled
  • Added GlobalWebView2Loader.FailureReportFolderPath
  • Added new printing options to the MiniBrowser demo.
  • Replaced the server used in the NavigateWithWebResourceRequestBrowser demo.
  • Added TWVFMXBrowser.GetScreenScale.
  • Use FBrowser.ScreenScale in TWVFMXWindowParent.UpdateSize to get the scale for the current monitor if possible.
  • Fixed screen scale issue in SimpleFMXBrowser and FMXTabbedBrowser.
  • Fixed backwards compatibility issues with XE2.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to WebView2 NuGet 1.0.1587.40

Post by salvadordf »

Hi,

WebView4Delphi has been updated to WebView2 NuGet 1.0.1587.40

These are the official release notes :
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10158740

This is what's new in WebView4Delphi since the last announcement:
  • Added the CustomSchemeBrowser demo.
  • Fixed the interfaces in the TCoreWebView2EnvironmentOptions declaration.
  • Added TWVBrowserBase.OnGetCustomSchemes.
  • Added GlobalWebView2Loader.OnGetCustomSchemes.
The new WebView2 API version includes the possibility to register custom schemes and the CustomSchemeBrowser demo shows how to use the new feature. Read the code comments in that demo for more information.
Locked