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.

incognito mode ver 128-131

Post Reply
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

incognito mode ver 128-131

Post by dilfich »

MDIBrowser
Why are there so many files in incognito mode in the new versions?

https://postimg.cc/N5TQ5njH

In addition, the language setting does not work as it did before.
That's not how it works anymore.

Code: Select all

    Chromium1.AcceptLanguageList:= 'en-GB';
    Chromium1.DefaultURL := Edit1.Text;
    Chromium1.CreateBrowser(CEFWindowParent1, '', TempContext);
Only the global installation works.

Code: Select all

GlobalCEFApp.AcceptLanguageList:= 'en-GB';
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: incognito mode ver 128-131

Post by salvadordf »

The new chrome style adds many new files to the rootcache directory.

If you can replicate this issue with the official CEF sample application I would suggest that you create an issue in the CEF project about those unexpected files in incognito mode in the CEF project.
https://github.com/chromiumembedded/cef

The AcceptLanguageList property sets the new value in the Chromium browser preferences. The Browser.Host.RequestContext.CanSetPreference function returns true and the new value seems to be set but Chromium overrides it with the default GlobalCEFApp.AcceptLanguageList value.

This seems to be a new Chromium issue/feature. The value in some browser preferences is not used by Chromium and we can only read them.

I haven't tried this recently but try using the TChromiumCore.OnBeforeResourceLoad event to replace the "Accept-Language" header.
https://github.com/salvadordf/CEF4Delphi/blob/f0f4de8b3b5e69d0b9353a374093959712c56bb2/source/uCEFChromiumCore.pas#L8616
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: incognito mode ver 128-131

Post by salvadordf »

I just created an issue about this :
https://github.com/salvadordf/CEF4Delphi/issues/543
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: incognito mode ver 128-131

Post by dilfich »

Yes, there are more files, but the folder size doesn't seem to be growing, within 10 MB.
Then it's better to fix the demo so as not to clog up the bin folder)
for example

Code: Select all

GlobalCEFApp.RootCache            := ExtractFileDir(ParamStr(0)) + '\MDIBrowser-Root';
It is probably possible to replace the header, but this is only visual and no js verification will be passed.
https://browserleaks.com/javascript
Post Reply