Bug 301625

Summary: Document is a script execution context so it should be used directly in TT code.
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: New BugsAssignee: Luke Warlow <lwarlow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

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.