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
301625
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
Add attachment
proposed patch, testcase, etc.
Luke Warlow
Comment 1
2025-10-29 08:20:29 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/53142
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
<
rdar://problem/163827185
>
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