[wpt-sync] Sync PR 32622 - Implement AbortSignal.timeout
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 32622 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/32622
Details from upstream follow.
Scott Haseley <shaseley@chromium.org> wrote:
Implement AbortSignal.timeout
AbortSignal.timeout is a static method that creates a new AbortSignal
that is automatically aborted after a specified duration. The
implementation is essentially PostDelayedTask(SignalAbort, ms).Throttling: this API is specced to use the timer task source, but there
are three internally due to our throttling implementation. We use
immediate for the timeout == 0 case and high nesting for timeount > 0
(the typical case), i.e. all non-zero timeouts are eligible for
throttling (Note: this matches scheduler.postTask()).Spec PR: https://github.com/whatwg/dom/pull/1032
I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/9Y290P1WimY/m/bru989iAAgAJBug: 1181925
Change-Id: I192d82a8bf12c368abcd47ae6c50e80f50654cf9
Reviewed-on: https://chromium-review.googlesource.com/3425124
WPT-Export-Revision: 232d5be29c1a15177a9bb2216b561fae9760744a
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests and 1 subtests
Status Summary
Firefox
OK : 3
PASS: 4
FAIL: 7
Chrome
OK : 3
PASS: 4
FAIL: 7
Safari
OK : 3
PASS: 4
FAIL: 7
Links
Details
New Tests That Don't Pass
/dom/abort/AbortSignal.any.worker.html
AbortSignal.timeout() returns a non-aborted signal: FAIL (Chrome: FAIL, Safari: FAIL)
Signal returned by AbortSignal.timeout() times out: FAIL (Chrome: FAIL, Safari: FAIL)
AbortSignal timeouts fire in order: FAIL (Chrome: FAIL, Safari: FAIL)
/dom/abort/AbortSignal.any.html
AbortSignal.timeout() returns a non-aborted signal: FAIL (Chrome: FAIL, Safari: FAIL)
Signal returned by AbortSignal.timeout() times out: FAIL (Chrome: FAIL, Safari: FAIL)
AbortSignal timeouts fire in order: FAIL (Chrome: FAIL, Safari: FAIL)
/dom/abort/abort-signal-timeout.html
Signal returned by AbortSignal.timeout() is not aborted after frame detach: FAIL (Chrome: FAIL, Safari: FAIL)
Comment 5•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/749eac988d99
https://hg.mozilla.org/mozilla-central/rev/a569995e3538
Description
•