[wpt-sync] Sync PR 26782 - [Trusted Types] Use sample script value that is actually a script.
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream][domsecurity-backlog])
Sync web-platform-tests PR 26782 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/26782
Details from upstream follow.
b'Daniel Vogelheim <vogelheim@chromium.org>' wrote:
[Trusted Types] Use sample script value that is actually a script.
Fix-It week: The test passes, but will then report an error in the
test harness, because the string chosen for the example test is not
actually a valid script. If we simply return "0" - which is valid JS -
the bug disappears. (The test doesn't care about the script anyhow, only
about whether it's accepted as input ot not.)Change-Id: Ie36c27965494f71b796176d3818aefd41b3067ab
Reviewed-on: https://chromium-review.googlesource.com/2574953
WPT-Export-Revision: a6361c4f532c6026589303b906052c8ec484876a
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 8 subtests
Status Summary
Firefox
FAIL : 6
ERROR: 1
Chrome
OK : 1
PASS : 8
Safari
FAIL : 6
ERROR: 1
Links
Details
New Tests That Don't Pass
/trusted-types/block-string-assignment-to-DOMWindowTimers-setTimeout-setInterval.tentative.html: ERROR (Chrome: OK, Safari: ERROR)
window.setTimeout assigned via policy (successful Script transformation).: FAIL (Chrome: PASS, Safari: FAIL)
window.setTimeout(string)
throws.: FAIL (Chrome: PASS, Safari: FAIL)
window.setTimeout(null)
throws.: FAIL (Chrome: PASS, Safari: FAIL)
window.setInterval assigned via policy (successful Script transformation).: FAIL (Chrome: PASS, Safari: FAIL)
window.setInterval(string)
throws.: FAIL (Chrome: PASS, Safari: FAIL)
window.setInterval(null)
throws.: FAIL (Chrome: PASS, Safari: FAIL)
Updated•5 years ago
|
![]() |
||
Comment 4•5 years ago
|
||
bugherder |
Description
•