Bug 287107
| Summary: | Trusted Types runs extra code than neccessary when not used in CSP | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Luke Warlow <lwarlow> |
| Component: | DOM | Assignee: | Luke Warlow <lwarlow> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 266630 | ||
Luke Warlow
Currently for sinks we check through the CSP policies each time the sink is hit. We can save this work by setting a flag on the document object (which we already have code to do for eval optimisations), and using that instead.
We can also skip some work for various attribute methods, by using the same flag.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Luke Warlow
Pull request: https://github.com/WebKit/WebKit/pull/40068
Radar WebKit Bug Importer
<rdar://problem/144714872>
EWS
Committed 290561@main (160b58921311): <https://commits.webkit.org/290561@main>
Reviewed commits have been landed. Closing PR #40068 and removing active labels.