Global cookies settings are not retained when a site is added/removed from the `shields down` block
See original GitHub issueDescription
Found while testing https://github.com/brave/brave-browser/issues/12782
Cookies settings are not retained when a site is added/removed from the shields down
block
Steps to Reproduce
Case 1:
- clean profile 1.46.x
- open nytimes.com site in an NTP
- add nytimes to shield down block in brave://settings/content/braveShields
- make sure shield is
Down
for nytimes.com - click on the shield icon for nytimes.com and make the shields
Up
- make sure shield is
Up
for nytimes.com - expand the advanced controls shield settings and look for the cookies settings
- cookies settings is
Allow all cookies
but the global shield cookies settings isBlock cross site cookies
- global cookies settings are not retained
Case 2:
- clean profile 1.46.x
- add
nytimes.com
in shields down block underbrave://settings/content/braveShields
- open
nytimes.com
in an NTP and ensure that shield is down - remove the blocked site
nytimes.com
frombrave://settings/content/braveShields
- open nytimes.com tab and ensure shield is enabled and default shield settings are retained on nytimes.com
- change the global shield settings (Trackers and ads =
Aggressive
, FF=Strict, may break sites
and cookies =Disabled
) - ensured that the updated global shield settings are retained for nytimes
- add nytimes to shields down block in content settings
- ensured nytimes shield is down
- enable the shield for nytimes.com manually
- ensured shield is enabled and default shield settings are retained on nytimes (steps 6 shield settings are retained)
- change the global shield settings (Trackers and ads =
Standard
, FF=Standard
and cookies =All
) - open nytimes, the updated shield settings are not retained for cookies
Actual result:
Cookies settings are not retained when a site is added/removed from the shields down
block
https://drive.google.com/file/d/1ZHYz488-D-nOKpITsRguIhwxNAJ4aSzk/view?usp=sharing
Expected result:
Cookies settings should be retained when a site is added/removed from the shields down
block
Reproduces how often:
Easy
Brave version (brave://version info)
Brave | 1.46.80 Chromium: 107.0.5304.68 (Official Build) beta (64-bit) |
---|---|
Revision | a4e93e89d3b3df1be22214603fba846ad0183ca5-refs/branch-heads/5304@{#991} |
OS | Windows 10 Version 21H2 (Build 19044.2130) |
Version/Channel Information:
- Can you reproduce this issue with the current release? NA
- Can you reproduce this issue with the beta channel? Yes
- Can you reproduce this issue with the nightly channel? Yes
Other Additional Information:
- Does the issue resolve itself when disabling Brave Shields? NA
- Does the issue resolve itself when disabling Brave Rewards? NA
- Is the issue reproducible on the latest version of Chrome? NA
Miscellaneous Information:
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Brave shield ignores brave://settings/content/cookies settings
If the shield mode is "block all cookies", then cookies will not be saved at all, even if you add the site domain...
Read more >Problem, Brave shields they are disabled by default
Now, every site I enter has Shields disabled, even in global settings set to block trackers and cookies cross-site. Brave Version
Read more >How to Enable and Disable Cookies - AllAboutCookies.org
Click on "Search Now" Select and open the folders that are retrieved. Click to highlight any cookie file. Click the "Delete" key to...
Read more >Cookie Status :: Current Status Of Browser Tracking ...
Brave Chrome Cliqz
Mechanism Shields n/a Anti‑Tracking
Deployed in 0.55.18 n/a 1.30.0
Latest release Link Link Link
Read more >How to Enable, Disable, View, or Delete Internet Cookies
Under Cookies and data stored / Cookies and site data, you can toggle cookies on and off (A), block third-party cookies (B), or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If I do
[*.]nytimes.com
inbrave://settings/content/braveShields
then I get shields down, but that is a different setting than what the shields panel controlsIf I then re-enable nytimes in the shields panel, it shows shields up (because the more specific match for
www.nytimes.com
is shields up), but cookies are still (incorrectly) applied based on the[*.]nytimes.com
entrySo… there are two bugs here:
[*.]nytimes.com
to the effective cookies setting even though there’s a more specific settingwww.nytimes.com
that should take precedence@bridiver Yes, in the shields panel, I will update the steps. Thanks!