merge_pr_49909
Fix some assertions for trusted type sink tests.
These assertions were added in
#46089
They intend to check the value of the passed sink name to the callbacks
of the default policy, based on the passed trusted type name. However,
the corresponding switch
statements are no-op because they actually
expect trusted type (objects) rather than trusted type names (strings).
For default-policy-callback-arguments.html
we just remove the
switch
statement, since the sink name is already tested just above.
We fix the switch
for the other files, renaming the argument to
trustedTypeName
to make more explicit it is a string and adding a
default branch to catch any unknown type name.
Differential Revision: https://phabricator.services.mozilla.com/D233175
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1939866
gecko-commit: 41077ac9b8c4ace9e7acf885d957a4b8e3bf465c
gecko-reviewers: zsun