-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 overwrites document.adoptedStyleSheets #14333
Comments
Issue happens only with Brave Shields tracker & ad blocking. When disabling shields or selecting "Allow all trackers & ands" (keeping other shields at defaults) it works correctly. |
^ cc @pes10k @SergeyZhukovsky thanks for opening a PR |
as @diracdeltas mentioned, thanks for the PR @Artur- , however I created a new one as wanted to include couple small check fixes as well. And our CI doesn't run on PRs from forks and I see some lint failures in long strings in your version. But thank you for doing it anyways, I'm going to close your PR in favour of this one brave/brave-core#8081 |
Labelling as |
Uplifted both brave/brave-core#8089 & brave/brave-core#8090. Should be in the next |
Verification passed on the following devices running 1.21.71 x64 build
Verification passed on
Verification passed on
Verified test plan from the description Verification passed on
|
Description
When you load a document that adds something to
document.adoptedStyleSheets
, Brave will remove that and replace it with Brave's owncontent_cosmetic.cosmeticStyleSheet
Steps to Reproduce
Live version at https://artur.app.fi/brave-styles.html
Actual result:
Text is black
Expected result:
Text is blue
Reproduces how often:
Always
Desktop Brave version:
1.20.103 Chromium: 88.0.4324.152 (Official Build) (x86_64)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
Caused by overwriting document.adoptedStyleSheets instead of appending
The text was updated successfully, but these errors were encountered: