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

Bugfix: dark mode broken for settings when strict fingerprinting #9215

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

ShivanKaul
Copy link
Collaborator

@ShivanKaul ShivanKaul commented Jun 23, 2021

Resolves brave/brave-browser#16496. Needed to add an explicit check to make sure shields are up.

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@ShivanKaul ShivanKaul merged commit 7f729f1 into master Jun 23, 2021
@ShivanKaul ShivanKaul deleted the bugfix/fingerprinting/dark-mode-settings branch June 23, 2021 18:30
brave-builds pushed a commit that referenced this pull request Jun 24, 2021
@kjozwiak kjozwiak added this to the 1.28.x - Nightly milestone Jun 24, 2021
@kjozwiak
Copy link
Member

Adding missing 1.28.x - Nightly milestone label as this landed in master which is currently on 1.28.x.

@mj162
Copy link

mj162 commented Sep 30, 2021

@ShivanKaul, I have the reverse problem in Brave AppImage v1.31.58 in which there is no brave://settings/appearance setting for theme; the app runs in dark mode -- loved by some but disliked by others -- and cannot be changed.

@ShivanKaul
Copy link
Collaborator Author

@mj162 - do you mean brave://settings/appearance does not resolve for you? Or do you mean there is no option to change "Brave colors" on that page? I'm unable to repro either on Brave Beta v1.31.67.
If your issue persists, please create a new issue on https://github.com/brave/brave-browser/issues

@mj162
Copy link

mj162 commented Oct 1, 2021

Thanks @ShivanKaul. Original issue can be seen here:
Screen recording showing that in Guest mode, the theme setting is unavailable

SOLVED

Adding the following commandline options forced (a little incompletely) light mode:
--disable-features=WebUIDarkMode --enable-features=WebUILightMode

Reading related threads in summary the issues appear to be:

  1. Respecting system theme (e.g. light during daytime);
  2. Decoupling colour settings from privacy settings
  3. Completeness of the theme setting -- e.g. right now I have daytime light mode forced on by the above command line options yet the window decoration, tabs and dropdown menus remain dark

Thanks I won't raise an issue as a) I have an imperfect workaround and b) you are awaiting an upstream fix.

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