salvadordf 15 Posted December 3, 2021 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. https://github.com/salvadordf/WebView4Delphi 7 4 Share this post Link to post
Ann Lynnworth 10 Posted December 4, 2021 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
Edwin Yip 141 Posted December 4, 2021 Great! Another amazing project by you! What's the planned supported Delphi versions ;) Share this post Link to post
salvadordf 15 Posted December 4, 2021 (edited) 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 December 4, 2021 by salvadordf Share this post Link to post
Ann Lynnworth 10 Posted December 5, 2021 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'; 1 Share this post Link to post