Page CSP can block Reader Mode stylesheet #24577
Labels
feature/speedreader
OS/Desktop
priority/P3
The next thing for us to work on. It'll ride the trains.
QA Pass-macOS
QA/Yes
release-notes/include
Milestone
Description
A site's content-security-policy can block the Reader Mode's inline CSS from loading if the CSP uses a hash.
Steps to Reproduce
Actual result:
The CSS for Reader Mode is not applied; the page is completely unstyled. The console reports the following error:
Expected result:
Expected Reader Mode to function normally and render styled, as it does in other desktop browsers (Firefox, Safari, Edge, Vivaldi, Chromium with DOM Distiller, etc).
Reproduces how often:
Easily + consistently reproducible.
Brave version (info found on brave://version)
1.44.31 Chromium: 104.0.5112.81 (Official Build) nightly (64-bit)
Version/Channel Information:
I have only attempted to reproduce this issue on the Nightly channel. I first noticed the issue a month ago and reproduced it just now, so it should have tricked down to other channels by now.
Other Additional Information:
Miscellaneous Information:
The full CSP that triggers this issue:
The exact hash is subject to change if/when I update my site's stylesheet.
The text was updated successfully, but these errors were encountered: