Page 1 of 1
incognito mode ver 128-131
Posted: Fri Jan 17, 2025 6:03 pm
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';
Re: incognito mode ver 128-131
Posted: Sun Jan 19, 2025 4:18 pm
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
Re: incognito mode ver 128-131
Posted: Sun Jan 19, 2025 4:35 pm
by salvadordf
I just created an issue about this :
https://github.com/salvadordf/CEF4Delphi/issues/543
Re: incognito mode ver 128-131
Posted: Sun Jan 19, 2025 8:34 pm
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