-
Notifications
You must be signed in to change notification settings - Fork 905
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
Hide Aggressive Fingerprinting Protection behind a flag #20316
Conversation
(please give a heads up before merging this, so i can prepare a blog post) |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
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.
chromium_src
and strings
++. Please, add more reviewers for other files.
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.
++ android part.
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.
chromium_src
lgtm (oops, missed Max already approved).
components/constants/pref_names.cc
Outdated
@@ -46,6 +46,7 @@ const char kReferralHeaders[] = "brave.referral.headers"; | |||
const char kReferralAndroidFirstRunTimestamp[] = | |||
"brave.referral_android_first_run_timestamp"; | |||
const char kNoScriptControlType[] = "brave.no_script_default"; | |||
const char kFingerprintingControlType[] = "brave.fingerprinting"; |
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.
wait, why this is a preference, but not a content settings value?
can this be changed per website? If yes, then it should be stored as a "default" value for a content settings.
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 order to create a toggle switch (instead of a drop-down menu) for the global setting, it was necessary to create a pref. But we are still tying both the global and per-site content settings to the respective toggle switches.
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 order to create a toggle switch (instead of a drop-down menu) for the global setting, it was necessary to create a pref
You can create it with an empty pref. Please take a look at how forgetFirstPartyStorageControlType
is implemented. It uses an empty pref and handles changes via callback.
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
5080550
to
fdebcf6
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
606cb10
to
2f8e864
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
905c75e
to
b4f445b
Compare
A Storybook has been deployed to preview UI for the latest push |
d0ad589
to
b40d43e
Compare
A Storybook has been deployed to preview UI for the latest push |
@arthuredelstein can you attach a tesplan please? |
Resolves brave/brave-browser#31229
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
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: