-
Notifications
You must be signed in to change notification settings - Fork 920
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
Added Shields settings section #14893
Conversation
2de3059
to
3e0b96d
Compare
32aca6a
to
d4d9dee
Compare
d4d9dee
to
17fb383
Compare
17fb383
to
a33eb13
Compare
a268e4a
to
d83595c
Compare
@bridiver @bsclifton I removed all HTTPSE related things due to https://github.com/brave/security/issues/1061#issuecomment-1272868332 and updated description, please take a look again, thanks |
8d224f2
to
5bf00d0
Compare
Code changes RE: the removal of httpse setting took a moment to understand, but it makes sense 😄 I build and ran this PR locally and shields up/down works great 👍 For the screen at brave://settings/content Should the label that says |
742da46
to
feee1d2
Compare
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.
Works great - just had a few items to change
The labels on brave://settings/content/braveShields should say Shields Up
and Shields Down
Right now, the one which before said Up
is unintentionally having the new Sites can block trackers, ads, and fingerprinting using Shields
value
Once those issues are fixed, everything else looks good to me! 😄👍
feee1d2
to
20e4ac6
Compare
678d76e
to
7f46ec4
Compare
7f46ec4
to
b83cc84
Compare
refreshState() { | ||
this.browserProxy_.getHTTPSEverywhereEnabled().then(value => { | ||
this.httpsEverywhereEnabled_ = value | ||
}) | ||
|
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 might not be understanding, but something doesn't seem quite right here to me. Where is refreshState
called? I also don't see a definition for getHTTPSEverywhereEnabled
.
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.
If I'm right, it's most likely the root cause for these two issues:
Resolves brave/brave-browser#12782
brave://settings/content
:up
/down
orenabled
/disabled
), navigates to/shields
settings subpageUpgrade connections to HTTPS
optionUpgrade connections to HTTPS ((removed)true
/false
), navigates to/shields
settings subpageReplaced(removed)brave.https_everywhere_default
byprofile.default_content_setting_values.httpUpgradableResouces
shields2.mp4
Updated screenshots
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:
brave://settings/content/shields
Add
buttons for each sections and check if shields meets this configuration