WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
287107
Trusted Types runs extra code than neccessary when not used in CSP
https://bugs.webkit.org/show_bug.cgi?id=287107
Summary
Trusted Types runs extra code than neccessary when not used in CSP
Luke Warlow
Reported
2025-02-05 11:14:22 PST
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
Comment 1
2025-02-05 11:20:42 PST
Pull request:
https://github.com/WebKit/WebKit/pull/40068
Radar WebKit Bug Importer
Comment 2
2025-02-12 11:15:39 PST
<
rdar://problem/144714872
>
EWS
Comment 3
2025-02-18 14:38:04 PST
Committed
290561@main
(160b58921311): <
https://commits.webkit.org/290561@main
> Reviewed commits have been landed. Closing PR #40068 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug