Open Bug 1774414 Opened 2 years ago Updated 1 year ago

Import Maps won't work if there's a HTTP Link Header with modulepreload

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: allstars.chh, Unassigned)

References

()

Details

For the modulepreload feature from bug 1425310, the modulepreload link element could be served from the equivalent HTTP Link Header, See the wpt test in 1.

And from the Import Maps spec, we need to set acquiring import maps to false when fetch a modulepreload module script graph 2.

So that means if the document comes with a HTTP Link Header modulepreload, then the document won't be able to use Import Maps.
Also see another wpt test 3, and Bug 1774175.

Depends on: 1801764
No longer depends on: 1801764
You need to log in before you can comment on or make changes to this bug.