Call SetAcquiringImportMaps(false) when fetching a modulepreload module script graph
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
From the import maps spec
https://wicg.github.io/import-maps/#wait-for-import-maps
When the browser starts to fetch a modulepreload module script graph 1, it should call set acquiring import maps to false 2
Currently Gecko doesn't support <link rel="modulepreload"> yet (bug 1425310)
But the WPT for Import Maps will test this behavior. modulepreload.html 3, and modulepreload-link-header.html 4
Assignee | ||
Comment 1•8 months ago
|
||
I have a patch that doesn't actually do the module preloading, but it will call SetAcquiringImportMaps(false) if it found any <link rel="modulepreload> element or a HTTP header with Link <...> rel=modulepreload
Assignee | ||
Comment 2•8 months ago
|
||
Assignee | ||
Comment 3•8 months ago
|
||
Hi Jonco and Yulia
Do you think we could land the short fix first without actually implementing modulepreload feature?
Comment 4•8 months ago
|
||
Yes, we can land this without implementing modulepreload yet.
Assignee | ||
Updated•8 months ago
|
Updated•7 months ago
|
Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/110862c2c4da Call SetAcquiringImportMaps(false) when processing modulepreload. r=yulia,smaug
Description
•