| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Is it possible to test this?
Does the linked bug have to be private?
(https://www.chromium.org/issue-tracking/googler-guidelines/ "Bugs should be open by default, unless there is specific information that should be restricted to Googlers. Chromium is an open-source project.")
Move inline CSS to fix blob iframe CSP errorsOlga KorokhinaThis is no longer accurate.
Indeed, thank you, adjusted.
with Blob resource in existing css file. Inline styles for <pre> wrapping text in ifame moved to html.css making it available on any rendered page, this eliminates CSP security error fired if policies for styles do not include 'unsafe-inline'. Solves several known issues with blobs as iFrame source.Olga KorokhinaNeed to update the description to match the actual change.
Note that you should wrap the lines of the commit message at ~72 chars.
Fixed, thank you.
// attribute This style attribute should be allowed regardless of the CSPOlga KorokhinaMissing '.'
Copy-pasted :) Fixed, thank you.
// headers sent with the text file. This is safe since the all non-textOlga Korokhinaremove "the"
Removed, thank you.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
18 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/core/html/text_document.cc
Insertions: 2, Deletions: 2.
@@ -37,8 +37,8 @@
SetCompatibilityMode(kNoQuirksMode);
LockCompatibilityMode();
// Text documents are rendered using a UA-inserted <pre> tag with a style
- // attribute This style attribute should be allowed regardless of the CSP
- // headers sent with the text file. This is safe since the all non-text
+ // attribute. This style attribute should be allowed regardless of the CSP
+ // headers sent with the text file. This is safe since all non-text
// rendered content, that would have been blocked, is inserted by the UA.
GetExecutionContext()
->GetContentSecurityPolicy()
```
Override TextDocument CSP headers to fix blob iframe CSP errors
Change eliminates the CSP error caused by inline css classes in
TextDocument's <pre> wrapper for iFrame by overriding the headers.
Solves several known issues with blobs as iFrame source.
Bug: 336209144
Change-Id: I98abb62b8a6ec8557e4dae34bb665c478b279806
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7031803
Reviewed-by: Simon Hangl <sim...@google.com>
Commit-Queue: Olga Korokhina <koro...@google.com>
Reviewed-by: Rune Lillesveen <fut...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1540021}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |