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
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
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•2 years 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•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Hi Jonco and Yulia
Do you think we could land the short fix first without actually implementing modulepreload feature?
Comment 4•2 years ago
|
||
Yes, we can land this without implementing modulepreload yet.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•