-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Regional adblock filters are not pre-selected based on locale #4367
Comments
@btlechowski Just double-checking: When you set the locale to "fr", did you also check the option for "Display Brave in this language"? You'll know when you've properly done it, because Brave will then show a button to relaunch the browser. Sorry if you have done this, just wanted to confirm because it's easy to miss. |
@emerick Yes, I did set the language and restarted the browser as you described. Brave was launched in french locale. |
Had a little bit of time to dig into this. When we pre-select the regional adblock filter based on the current locale, we only perform that check once at startup (otherwise, we'd end up always selecting that region even if the user decided to disable it in brave://adblock...) This means that in order to test this feature, the first run of Brave with the new profile must already be using the desired region. I suggest testing it like this, at least on Windows:
Something like that. |
@jumde @antonok-edm Is this issue still a concern?
cc @rebron |
@btlechowski those lists are dynamically populated based on https://github.com/brave/adblock-resources/blob/master/filter_lists/regional.json. The behavior should still be the same though, if the locale is |
It turns out we have a Two of these were addressed in brave/adblock-resources#56, although I haven't checked if that is an exhaustive fix. |
@antonok-edm When the fix will be available in nightly? |
@btlechowski the fix I mentioned above is just for the Japanese and Indian lists, but that's already available everywhere (shipped as a component update). If there are still other locales that should be pre-selecting lists and aren't, let me know and I can push out a similar update for those as well. |
Still reproducible
After changing language to CZE, |
Verified
|
Brave | 1.50.91 Chromium: 111.0.5563.64 (Official Build) beta (x86_64) |
---|---|
Revision | c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995} |
OS | macOS Version 11.7.4 (Build 20G1120) |
Steps:
- installed
1.50.91
- set operating system's region to the respective locale, from below
- restarted the OS
- launched Brave
- opened
brave://adblock
- confirmed each locale's default, pre-selected list(s)
fr |
pl |
cze |
ja |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Verification passed on
Set locale to 'pl' and verified PL lists are set on clean profile Changed locale to 'fr' and verified only 'fr' lists are set - FAILED Logged: #29249 |
Verification passed on Oppo Reno 5 with Android 13 running 1.50.110 x64 build
4367-ARM.mp4 |
Follow up to #1931
Steps to Reproduce
1, Start with a clean profile in
pl
locale2. Set locale to "fr"
3. Restart Brave
4. Visit
brave://adblock
5. Verify that French regional list is selected
Actual result:
FRA: EasyList Liste FR
is not pre-selectedExpected result:
FRA: EasyList Liste FR
is pre-selectedReproduces how often:
Easily reproduced
Brave version (brave://version info)
Reproduced on
Not reproducible on
So this is a regression.
Note: also reproduced with Polish language. I also changed system locale, but it didn't fix the issue
cc @brave/legacy_qa @emerick
The text was updated successfully, but these errors were encountered: