-
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
Make sure original document security settings apply to speedreader document #35797
Comments
@diracdeltas we do not modify the original headers, but in fact they can be painful for us, see #24577 |
Discussed on Slack what to do:
|
Only these artributes are removed during the distillation process, the rest remain as in the original page, but we completely remove all < links > and <script> elements, so I assume we should check if there are no elements with integrity attributes, instead of checking they are preserved. |
Since the CSP disables script I think we are fine to remove script elements. As for link, if we allow loading of some elements like favicon, we should make sure the integrity attributes are kept. However if we block all loading from link elements as we do for stylesheets, it's also fine to remove completely. |
Verified
|
example | example |
---|---|
![]() |
![]() |
#24577 - Already verified: #24577 (comment)
Verified with
Verified test plan from brave/brave-core#21958 First issue
Second issue
|
Verified on
First issueSTEPS:
ACTUAL RESULTS:
Galaxy Tab S8 / Tablet
Pixel 7 / Phone
Second issueSTEPS:
ACTUAL RESULTS:
Galaxy Tab S8 / Tablet
Pixel 7 / Phone
|
Verified
|
example | example |
---|---|
![]() |
![]() |
Second issue: #24577 - PASSED
Steps:
- installed
1.64.97
- launched Brave
- loaded an archived blog post from
https://seirdy.one/
- opened the
Console
in DevTools - clicked on
Turn on Speedreader
Confirmed Speedreader
mode worked
example | example |
---|---|
![]() |
![]() |
probably the HTTP headers are already preserved but we should check:
References:
https://hackerone.com/bugs?subject=brave&report_id=2354284&view=new&substates%5B%5D=new&reported_to_team=&text_query=&program_states%5B%5D=2&program_states%5B%5D=3&program_states%5B%5D=4&program_states%5B%5D=5&sort_type=latest_activity&sort_direction=descending&limit=25&page=1
#35095
The text was updated successfully, but these errors were encountered: