Bug 1657640 [wpt PR 24905] - [TrustedTypes] WPT test > check violation's sourceFile...
commit71e82baebe0ef7d8dc26c636713d7ce49f84266b
authorarthursonzogni <arthursonzogni@chromium.org>
Fri, 7 Aug 2020 12:47:15 +0000 (7 12:47 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 15 Aug 2020 07:04:20 +0000 (15 07:04 +0000)
tree1d0ee6d7fd0f81ccd56b3f2d20fcccf6708acc39
parentcb196e493a990a9b6986b4719134123ea4999b88
Bug 1657640 [wpt PR 24905] - [TrustedTypes] WPT test > check violation's sourceFile., a=testonly

Automatic update from web-platform-tests
[TrustedTypes] WPT test > check violation's sourceFile.

Check what is the reported sourceFile depending on the script's origin.
Currently, the full URL isn't exposed in the case of a cross-origin
script. This is an issue. See https://crbug.com/1113163

TODO: Add checks with redirects.

Bug: 1113163
Change-Id: I8bbd1234a485568127a21c6abfbd4d4a623494f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341125
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795841}

--

wpt-commits: af3059a547d3843001ed2aa7537418f1c9850c92
wpt-pr: 24905
testing/web-platform/tests/trusted-types/support/set-inner-html.js [new file with mode: 0644]
testing/web-platform/tests/trusted-types/trusted-types-source-file-path.tentative.html [new file with mode: 0644]