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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update to CEF 83.4.2

dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 83.4.2

Post by dilfich »

Yes, that's where I looked. https://chromedevtools.github.io/devtoo ... neOverride But I think esperementally means that it may not work, and not what will be removed in the future, or not?)
I updated CEF4Delphi again with a new procedure : TChromium.ClearDataForOrigin
It can be used to delete the storage data from a URL. The "aStorageTypes" parameters can have these values :
This is very good, but how can I check it? I have not seen any site that such a check was indicative. How can I test this, or where, if I know the answer?
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.2

Post by salvadordf »

http://www.sharonminsuk.com/code/storage-test.html

I used that page to test the option to clear the local storage and it works fine :)
DraDewa
Posts: 3
Joined: Fri May 29, 2020 3:15 am

Re: Update to CEF 83.4.2

Post by DraDewa »

Hello,

Can you tell me, how to update version?
Is the method the same as the installation process?
or i need remove the last version first?

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

Re: Update to CEF 83.4.2

Post by salvadordf »

It's safer to uninstall the old version first. Read this :
viewtopic.php?f=8&t=772#p3481
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 83.4.2

Post by dilfich »

Code: Select all

Chromium1RenderCompMsg(var aMessage: TMessage; var aHandled: Boolean);
aMessage.Msg = WM_LBUTTONUP
Doesn't work or shouldn't it?
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.2

Post by salvadordf »

It seems that Chromium only uses WM_LBUTTONDOWN
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 83.4.2

Post by dilfich »

TChromium.SetUserAgentOverride
So how do I return it by default? It makes sense because if the field is empty you need to do something in the function) :|
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 83.4.2

Post by salvadordf »

Execute a "Browser.getVersion" command to get the default user agent :
https://chromedevtools.github.io/devtoo ... getVersion

Use the TChromium.OnDevToolsMethodResult event to get the result of that command. The MiniBrowser demo has an example with another command to take a screenshot and it also uses TChromium.OnDevToolsMethodResult.

I guess you can also get the default user agent if you read the HTTP headers in a previous request.

The call TChromium.SetUserAgentOverride with the new or default value as the first parameter.
Post Reply