RESOLVED FIXED Bug 275951
Trusted Types default policy is collected by GC
https://bugs.webkit.org/show_bug.cgi?id=275951
Summary Trusted Types default policy is collected by GC
Luke Warlow
Reported 2024-06-27 06:14:22 PDT
There is a bug where the default policy's callback functions are being erroneously collected by GC. To Reproduce: Load example.com in STP with the trusted types flag on. Open web inspector. trustedTypes.createPolicy('default', { createScript: (s) => s }) trustedTypes.defaultPolicy.createScript('foo') clear() // Then press the collect garbage button in web inspector trustedTypes.defaultPolicy.createScript('foo') -> TypeError: Policy default's TrustedTypePolicyOptions did not specify a 'createScript' member.
Attachments
Luke Warlow
Comment 1 2024-06-27 06:19:51 PDT
EWS
Comment 2 2024-07-02 05:34:02 PDT
Committed 280573@main (d3e88fd78692): <https://commits.webkit.org/280573@main> Reviewed commits have been landed. Closing PR #30232 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-07-02 05:35:15 PDT
Note You need to log in before you can comment on or make changes to this bug.