Closed Bug 1681125 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 26782 - [Trusted Types] Use sample script value that is actually a script.

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
86 Branch
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

Component: web-platform-tests → DOM: Security
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

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)

Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/66331240f5f1 [wpt PR 26782] - [Trusted Types] Use sample script value that is actually a script., a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.