Add more tests for EnsureCSPDoesNotBlockStringCompilation. (#49449)
Improve test coverage for [1], considering string checks for arguments
that implement TrustedScript [2] and the rejection condition on whether
"Get Trusted Type compliant string" modified the input [3].
[1] https://w3c.github.io/webappsec-csp/#can-compile-strings
[2] #49371
[3] #49367
Differential Revision: https://phabricator.services.mozilla.com/D230369
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1934373
gecko-commit: cb03a787fe45e9a7bf5539008edbe0c0b79f1ca2
gecko-reviewers: smaug
Co-authored-by: Frédéric Wang fwang@igalia.com