-
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
Update 1.27.108 causes breakage in dark mode #17139
Comments
It's not just error screens, every website that uses media queries to detect dark mode is intentionally broken as of the last update with max fingerprinting protection enabled. I know it's hard to find a balance between protection and usability, but in this specific case I think it's not justified to break what's basically an accessibility feature for a questionable amount of privacy gains. Even with strict fingerprinting protection, most websites work fine (apart from WebGL heavy sites, where it makes sense to downgrade protections). This change on the other hand has a very visible effect on many sites people visit every day. I'm not sure any site uses this particular signal for fingerprinting, or that they can gain much from it. Libraries like fingerprintjs use other features like Please reconsider this change, and/or add a way for users to override it. |
I confirm the update broke websites' functionality to change their theme based on users' theme preferences. Steps to reproduce:
Website's theme will reset to light. Clicking on the Brave Shields icon in the address bar and setting CC: @ShivanKaul as an author of the changes, and @pes10k as someone who can provide the best approach in such cases 👍 |
The dark mode detection block checks for shields up and fingerprinting mode strict. I see that on error pages (no wifi, DNS lookup failed) we still have Shields up. Will check with @pes10k about the right thing to do here. |
I added a feature flag in brave/brave-core#9735 that allows opting-out of this fingerprinting protection |
@ShivanKaul mind adding a succinct test plan for this? Thanks! |
Verified
Steps:
|
example | example | example |
---|---|---|
Disabled
example | example | example |
---|---|---|
@stephendonner was on PTO, hence late response. Your test ^ looks good + we can re-use the tests from #15265 (comment) and just check if the feature flag works as intended (i.e. on disabling the feature flag, the protection shouldn't apply and dark mode should work again) |
Description
After the update error screens show up as white despite me using dark mode in brave
Steps to Reproduce
Actual result:
Expected result:
the same picture but with dark mode
Reproduces how often:
Easy
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: