Bug 275392
| Summary: | Trusted Types violation sample clipping incorrect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Luke Warlow <lwarlow> |
| Component: | Tools / Tests | Assignee: | Luke Warlow <lwarlow> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 266630 | ||
Luke Warlow
Currently the trusted types violation reports clip the sample at 40 characters. This doesn't match the spec which says that it should be a concat of the sink, "|" and the source code clipped at 40.
This was originally implemented but review feedback said that it made it too messy, so for the sake of getting 99% of the functionality in I reverted it (https://github.com/WebKit/WebKit/pull/23412#discussion_r1508234623)
This means that Safari currently doesn't match the spec and fails https://wpt.live/content-security-policy/reporting/report-clips-sample.https.html
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/130141078>
Luke Warlow
Pull request: https://github.com/WebKit/WebKit/pull/30394
EWS
Committed 280638@main (3ef7784b36a8): <https://commits.webkit.org/280638@main>
Reviewed commits have been landed. Closing PR #30394 and removing active labels.