Closed Bug 1621010 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 22141 - [Trusted Types] Add more tests for setTimeout/setInterval.

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 22141 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/22141
Details from upstream follow.

Yifan Luo <lyf@google.com> wrote:

[Trusted Types] Add more tests for setTimeout/setInterval.

Currently, we only have tests test how normal script policies affect on
setTimeout and setInterval handlers. This CL add four new tests aimed to
test the behavior via default polices.

Bug: 1059755
Change-Id: I820d08cebb0fe72e2787ce9f58c86a4a9a3068fd
Reviewed-on: https://chromium-review.googlesource.com/2094133
WPT-Export-Revision: 19b0ee7b8ac149bbeb95ea27ed6b1045fc2d79cf

PR 22141 applied with additional changes from upstream: a0e6371ffdbe6666278bc6c00160c34326c14790
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]

CI Results

Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 47 tests

Status Summary

Firefox

PASS : 46
FAIL : 2
ERROR: 1

Chrome

OK : 1
PASS : 6

Safari

FAIL : 2
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/trusted-types/DOMWindowTimers-setTimeout-setInterval.tentative.https.html: ERROR (Chrome: OK, Safari: ERROR)
window.setInterval assigned via policy (successful Script transformation).: FAIL (Chrome: PASS, Safari: FAIL)
window.setTimeout assigned via policy (successful Script transformation).: FAIL (Chrome: PASS, Safari: FAIL)

Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/11ed3010bc54
[wpt PR 22141] - [Trusted Types] Add more tests for setTimeout/setInterval., a=testonly
https://hg.mozilla.org/integration/autoland/rev/21ec110760d2
[wpt PR 22141] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.