Closed Bug 1863002 Opened 11 months ago Closed 10 months ago

[wpt-sync] Sync PR 42944 - Add tests for async modules not blocking execution of sibling modules

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Nicolò Ribaudo <nribaudo@igalia.com> wrote:

Add tests for async modules not blocking execution of sibling modules

Current results:

Chrome, Node.js, Deno Firefox Safari, Bun
Async modules only scheduling microtasks don't block execution of sibling modules
Async modules scheduling tasks don't block execution of sibling modules

This behavior is entirely specified in ECMA-262 (at https://tc39.es/ecma262/#sec-innermoduleevaluation) and the table above makes it look as if the behavior is engine-based.

However, when trying to add this as a test262 test all the engines passed it (see CI at https://github.com/tc39/test262/pull/3955). Only testing it in complete platforms show the failures, hence why the PR in this repo. This is not surprising, given how modules are implemented half in JS engines and half in embedding platforms.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 2 tests and 2 subtests

Status Summary

Firefox

OK : 2
PASS: 2
FAIL: 2

Chrome

OK : 2
PASS: 4

Safari

OK : 2
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd637ca97d4a [wpt PR 42944] - Add tests for async modules not blocking execution of sibling modules, a=testonly https://hg.mozilla.org/integration/autoland/rev/ef1ce90688a4 [wpt PR 42944] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.