Skip to content
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

Brave shields toggler is not locked on macos #27691

Closed
spylogsster opened this issue Jan 7, 2023 · 5 comments · Fixed by brave/brave-core#16573
Closed

Brave shields toggler is not locked on macos #27691

spylogsster opened this issue Jan 7, 2023 · 5 comments · Fixed by brave/brave-core#16573

Comments

@spylogsster
Copy link

Description

Set osx policy to make Brave Shields disabled and check the shields popup toggler, it still can be toggled despite the existence of policies.

Steps to Reproduce

  1. Set defaults write com.brave.Browser BraveShieldsDisabledForUrls -array "https://www.example.com/" "https://brave.com/" policy on macos
  2. Check shields popup on brave.com
  3. Make sure the shields toggler is locked

Actual result:

the toggler is not locked

Expected result:

the toggler is locked

Reproduces how often:

Brave version (brave://version info)

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

@bsclifton
Copy link
Member

Not related to this PR - but there seems to be a regression which is making this hard to test.

Toggling for happy path (when domain is not in list and you can toggle)... this does change the toggle state but then it doesn't reload the page. @stephendonner do you know if there is a bug for not reloading page/shields after toggle?

Works as expected on Release (including 1.47 RC); but problem is in both BETA and NIGHTLY.

@spylogsster
Copy link
Author

Not related to this PR - but there seems to be a regression which is making this hard to test.

Toggling for happy path (when domain is not in list and you can toggle)... this does change the toggle state but then it doesn't reload the page. @stephendonner do you know if there is a bug for not reloading page/shields after toggle?

Works as expected on Release (including 1.47 RC); but problem is in both BETA and NIGHTLY.

fixed it in this PR

@stephendonner
Copy link

Not related to this PR - but there seems to be a regression which is making this hard to test.

Toggling for happy path (when domain is not in list and you can toggle)... this does change the toggle state but then it doesn't reload the page. @stephendonner do you know if there is a bug for not reloading page/shields after toggle?

Works as expected on Release (including 1.47 RC); but problem is in both BETA and NIGHTLY.

There was not - thanks for fixing @spylogsster !

@kjozwiak
Copy link
Member

The above requires 1.48.124 or higher for 1.48.x verification 👍

@stephendonner
Copy link

Verified PASSED using

Brave 1.48.124 Chromium: 109.0.5414.87 (Official Build) beta (x86_64)
Revision 2dc18eb511c56e012081b4abc9e38c81c885f7d4-refs/branch-heads/5414@{#1241}
OS macOS Version 11.7.2 (Build 20G1020)

Steps:

  1. installed 1.48.124
  2. pasted the following into Terminal:
defaults write com.brave.Browser.beta  BraveShieldsDisabledForUrls -array "https://twitter.com" "https://www.example.com"
  1. loaded https://twitter.com and https://www.example.com
  2. clicked on the Shields icon in the URL bar for each
  3. confirmed both Shields status were set to Disabled
  4. also confirmed Settings managed by your organization notice
  5. opened brave://policy
  6. confirmed appropriate BraveShieldsDisabledForUrls entry with the two above sites
Terminal.app https://twitter.com https://www.example.com brave://policy
Screen Shot 2023-01-12 at 10 09 41 PM Screen Shot 2023-01-12 at 10 07 13 PM Screen Shot 2023-01-12 at 10 07 26 PM Screen Shot 2023-01-12 at 10 07 40 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants