It's possible for a script to be edited by JS before it's finished parsing. In these cases they should trigger a trusted types violation.
Pull request: https://github.com/WebKit/WebKit/pull/28648
<rdar://problem/128606254>
Committed 279225@main (c31d9c40707d): <https://commits.webkit.org/279225@main> Reviewed commits have been landed. Closing PR #28648 and removing active labels.