Jump to content
salvadordf

My new project : WebView4Delphi

Recommended Posts

I just published a new project in GitHub called WebView4Delphi.
WebView4Delphi allows you to embed Chromium based web browsers in your Delphi or Lazarus applications using the WebView2 runtime.
It uses the latest stable version of the WebView2 nuget package 1.0.1054.31.
I used many of the tricks I learned creating CEF4Delphi and you will notice many similarities if you used it.
I still have to write the documentation but you can build the available demos to see it working in VCL, FMX and Lazarus apps.
There are a few things pending like the "windowless mode".
It's being distributed with a simple MIT license so anyone can do whatever s/he wants with it.
 
  • Like 7
  • Thanks 4

Share this post


Link to post

Great.  Thank you.

 

Have you tested going to drive.google.com by any chance?  Google is no longer allowing the custom browser that I last compiled with CEF4.  I have been meaning to recompile to get around the problem.  Google lets me into gmail and they let me download items from drive when the notices come into gmail, but direct use of google drive is blocked.  They detect my CEF4 browser as an old version of "Firefox" now. 

 

 

Share this post


Link to post
6 hours ago, Ann Lynnworth said:

Great.  Thank you.

 

Have you tested going to drive.google.com by any chance?  Google is no longer allowing the custom browser that I last compiled with CEF4.  I have been meaning to recompile to get around the problem.  Google lets me into gmail and they let me download items from drive when the notices come into gmail, but direct use of google drive is blocked.  They detect my CEF4 browser as an old version of "Firefox" now. 

 

 

I haven't checked that.
Sometimes this is just the result of some temporal issue in the Google servers and they fix it but sometimes this a deliberate safety measure from Google against all embedded browsers.
Try using a modern Firefox user agent string.

Edited by salvadordf

Share this post


Link to post

You are right! It was just a matter of passing a more recent useragent string.

    GlobalCEFApp.UserAgent :=  // TCefApplication  with CEF4
      'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0';

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×