Closed Bug 1911815 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 47481 - Scheduling APIs: Remove scheduler.yield() parameters

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Scott Haseley <shaseley@chromium.org> wrote:

Scheduling APIs: Remove scheduler.yield() parameters

By default, scheduler.yield() continuations inherit the priority and
abort signal from the current task, but this behavior can be overridden
by providing a signal or priority option. But it's not clear if this is
necessary, and there are questions around the expectations of subsequent
continuations (see https://github.com/WICG/scheduling-apis/issues/96).

So to simplify the API and prevent shipping behavior we might regret,
we're removing the yield() parameters. If control over a continuation's
priority/abort is needed, a new task can be scheduled using postTask().
We plan to reevaluate this as the API rolls out and developers start
using it in more complex ways.

Related PR: https://github.com/WICG/scheduling-apis/pull/100.

Bug: 40633887
Change-Id: I5e23c9c8cf950cec795cddafd27c962b71eea5f7

Reviewed-on: https://chromium-review.googlesource.com/5753325
WPT-Export-Revision: 08eac15b478b582e857857427a9983095725f37b

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

CI Results

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

Total 9 tests and 1 subtests

Status Summary

Firefox

OK : 5
PASS : 2
FAIL : 18
TIMEOUT: 4
ERROR : 3

Chrome

OK : 9
PASS : 23

Safari

OK : 4
FAIL : 14
TIMEOUT: 4
ERROR : 4

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/92c0f0d7cc12 [wpt PR 47481] - Scheduling APIs: Remove scheduler.yield() parameters, a=testonly https://hg.mozilla.org/integration/autoland/rev/63982c6439b1 [wpt PR 47481] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.