-
Notifications
You must be signed in to change notification settings - Fork 885
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
Implement "reduce language fingerprinting" #12234
Conversation
7a2b1e9
to
2b06f33
Compare
68c05f9
to
2cfb05e
Compare
2b02ff4
to
b48ac40
Compare
b48ac40
to
b25fac8
Compare
b25fac8
to
4f3f26b
Compare
@@ -60,6 +60,7 @@ using brave_shields::features::kBraveDarkModeBlock; | |||
using brave_shields::features::kBraveDomainBlock; | |||
using brave_shields::features::kBraveDomainBlock1PES; | |||
using brave_shields::features::kBraveExtensionNetworkBlocking; | |||
using brave_shields::features::kBraveReduceLanguage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have a more descriptive name for this. Maybe AcceptLanguageFingerprintingProtection or AcceptLanguageFarbling?
@@ -146,6 +147,10 @@ constexpr char kBraveExtensionNetworkBlockingName[] = | |||
constexpr char kBraveExtensionNetworkBlockingDescription[] = | |||
"Enable blocking for network requests initiated by extensions"; | |||
|
|||
constexpr char kBraveReduceLanguageName[] = "Reduce language identifiability"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in all cases I think we should be clear that this is about accept-language
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well except it's more than that because the same setting controls font whitelisting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, seconding @pilgrim-brave , this setting controls both the explicit language preferneces in accept-language and navigator.languages, but also the implicit language preferences based on fonts available on the system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think kBraveReduceLanguage
is going to be basically meaningless to anyone looking at the code. Other suggestions?
0badc4e
to
489b9fe
Compare
@@ -15,6 +15,7 @@ if (!is_android) { | |||
"brave_navigator_devicememory_farbling_browsertest.cc", | |||
"brave_navigator_hardwareconcurrency_farbling_browsertest.cc", | |||
"brave_navigator_keyboard_api_browsertest.cc", | |||
"brave_navigator_languages_farbling_browsertest.cc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this in farbling when the other parts of the code are in brave shields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess more generally why does this directory exist if it's only tests? That seems a bit odd to me
chromium_src/third_party/blink/renderer/core/css/css_font_selector.cc
Outdated
Show resolved
Hide resolved
patches/third_party-blink-renderer-platform-fonts-font_fallback_list.cc.patch
Outdated
Show resolved
Hide resolved
chromium_src/third_party/blink/renderer/core/css/css_font_selector.h
Outdated
Show resolved
Hide resolved
f4a011d
to
fc7510c
Compare
Similar note to ^: if we decide to uplift this, we should make sure that the ReduceLanguage setting is next to De-AMP near the top of brave://settings/shields like it is in 1.39.x. It was moved in #12999 (misc fixes) but could not be part of the De-AMP misc fixes uplift PR (#13080) because the ReduceLang feature doesn't exist in 1.38.x |
Fixes brave/brave-browser#23093 Unfixes brave/brave-browser#20096 Unfixes brave/brave-browser#816 Reverts #13807 Which fixed brave/brave-browser#23489 Reverts #13205 Which fixed brave/brave-browser#22605 Reverts #12234 Which fixed brave/brave-browser#20096 and brave/brave-browser#816
Fixes brave/brave-browser#23093 Unfixes brave/brave-browser#20096 Unfixes brave/brave-browser#816 Reverts #13807 Which fixed brave/brave-browser#23489 Reverts #13205 Which fixed brave/brave-browser#22605 Reverts #12234 Which fixed brave/brave-browser#20096 and brave/brave-browser#816
Resolves brave/brave-browser#20096
Resolves brave/brave-browser#816
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: