-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Enabling Brave Shields breaks “Sync with system” theme setting on multiple websites. #21220
Comments
@Adrian-Samoticha I'm not able to reproduce this. Can you make sure brave://settings/appearance Brave Colors is set to Same as macOS and github is set properly, e.g. Day Theme is dark. With the github example, when I switch light and dark them from system settings, everything goes light or dark them the browser and the content. |
Which shields settings exactly is causing it? is there any extensions being used also? @Adrian-Samoticha |
@Adrian-Samoticha Do you have an extension possibly in conflict here. You can see below, looks like it's working properly. Screen.Recording.2022-02-25.at.1.39.52.PM.mov |
I have done further research and came to the conclusion that this issue is caused by the fingerprinting setting being set to “strict, may break sites”. Setting it to “standard” appears to fix the issue. This intuitively makes sense, since the OS dark mode setting can indeed be used for tracking purposes, though what's suspicious is the fact that there's a zero being displayed next to the fingerprinting setting, which implies that no fingerprinting-related items have been blocked for this particular site, even though the setting very much had a visible effect on the way the site works: What does the zero actually mean? Is it really supposed to represent the number of blocked fingerprinting-related items or does it mean something else entirely? |
Try to set this flag to disabled. Github, google etc. should then detect system theme just fine when strict fingerprinting is enabled. It was added sometime ago in brave/brave-core#9735 |
Thanks, this actually did the trick. |
It represents the number of times Shields blocked something (tracker, ad, etc) on the page that was on a filter list such as EasyList or EasyPrivacy. As @nastavoi said, #brave-dark-mode-block flag can be used when you want to use Strict mode but still want the website to be able to detect your Dark/Light mode setting. |
Description
When Brave Shields are enabled, websites that offer a “Sync with system” theme setting such that dark mode is automatically enabled if and only if it is enabled on the OS the browser is running on (such as GitHub and YouTube) default to a light theme even when the OS is currently set to dark mode.
Interestingly, YouTube seems to switch to dark mode for a fraction of a second before returning to light mode when dark mode is enabled at an OS level.
I'm aware that blocking websites from accessing OS-related information may help against certain trackers however I believe that if this is intentional, it should be present as an option in the brave-shields panel. Currently, the issue persists despite Brave showing 0 blocked items (on GitHub), which is why I believe this to be a bug.
Steps to Reproduce
Actual result:
Expected result:
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
n/a
The text was updated successfully, but these errors were encountered: