-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TChromiumCore.AcceptLanguageList not working in recent Chromium versions #543
Comments
After further testing, the TChromiumCore.AcceptLanguageList property seems to work fine as long as it's set after creating the browser. The browser cache has to be cleared to see the results in some cases. Navigate to this website to test this property. Tested using the menu option to change the Accept Language List in the MiniBrowser demo and CEF 132.3.1. GlobalCEFApp.AcceptLanguageList also works correctly. |
Hi, since CEF version 127 we have had a problem with Accept-Language. I just carried out the test with Cef version 132 and the mini browser. After changing the Accept Language via the menu options, the set Accept Language is only used the first time. If the page is reloaded, the default "en-US" is used instead of Accept-Language. |
I'll check this issue again as soon as I can. Meanwhile, use the GlobalCEFApp.AcceptLanguageList property. |
I tried to reproduce this issue navigating to several websites and reloading the site in the previous link several times and I can't reproduce it in my computer. I used 'it' (Italian) as the TChromiumCore.AcceptLanguageList property value in the MiniBrowser tests. I always saw the 'it' ACCEPT-LANGUAGE header in whatismybrowser.com I'll reopen this issue anyway. |
Hi, I tested this again on myself. My surroundings: CEF4Delphi: Master with cef_binary_132.3.2
Reproduced with "Mini-Browser" sample
|
The TChromiumCore.AcceptLanguageList property sets the new value in the browser preferences correctly but it's ignored by Chromium recently.
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.
Some browser preferences are not used by Chromium and we can only read them.
Using the TChromiumCore.OnBeforeResourceLoad event to replace the "Accept-Language" HTTP header might be a workaround.
See the discussion here
The text was updated successfully, but these errors were encountered: