Closed Bug 1837625 Opened 3 years ago Closed 2 years ago

[wpt-sync] Sync PR 40474 - Add test for referrer in module imports

Categories

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

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

Add test for referrer in module imports

This PR adds tests for the referrer used by fetches of modules imported using import statements and dynamic import().

The first commit adds tests for the currently specified behavior, while the second commit updates it to match the behavior proposed in https://github.com/whatwg/html/issues/3744 to align static and dynamic imports.

Marking as draft until when I have the spec PR ready.

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

CI Results

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

Total 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
PASS: 4

Chrome

OK : 1
PASS: 3
FAIL: 1

Safari

OK : 1
PASS: 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b00c3c10894 [wpt PR 40474] - Add test for referrer in module imports, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.