RESOLVED FIXED301625
Document is a script execution context so it should be used directly in TT code.
https://bugs.webkit.org/show_bug.cgi?id=301625
Summary Document is a script execution context so it should be used directly in TT code.
Luke Warlow
Reported 2025-10-29 07:52:27 PDT
In some Trusted Types code we do `*document().scriptExecutionContext()` when we can just do `document()`
Attachments
Luke Warlow
Comment 1 2025-10-29 08:20:29 PDT
Luke Warlow
Comment 2 2025-10-30 09:19:28 PDT
Turns out we can't but I'll use this issue and PR to fix the places where we do this incorrectly.
EWS
Comment 3 2025-10-31 16:22:57 PDT
Committed 302412@main (76ec38e84a64): <https://commits.webkit.org/302412@main> Reviewed commits have been landed. Closing PR #53142 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2025-10-31 16:23:11 PDT
Note You need to log in before you can comment on or make changes to this bug.