Don't cache HTTP errors in the module map
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
People
(Reporter: yoav, Assigned: allstars.chh)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
Steps to reproduce:
The current spec behavior doesn't allow developers to retry failed module imports, as the failure result (either an HTTP error or a network failure) gets cached.
Expected results:
https://github.com/whatwg/html/pull/10327 fixes that. Browsers should implement that change
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 month ago
|
Comment 2•1 month ago
|
||
I assume the fix should be around js/loader/ModuleLoaderBase.cpp, so changing the component to JS.
Feel free to correct me if I am wrong. Thanks.
Comment 3•1 month ago
|
||
Yoshi: is this the right component for this one, or should we redirect this elsewhere?
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
Don't cache modules with HTTP errors, this allows devs to retry the imports if
it was failed due to network failure.
| Assignee | ||
Comment 5•1 month ago
|
||
| Assignee | ||
Comment 6•1 month ago
|
||
Re-import a network errored module should succeed now.
| Assignee | ||
Comment 7•1 month ago
|
||
Make sure the <script> is inserted after <link rel="modulepreload"> is done,
so the result would be consistent.
Otherwise the <script> might also be preloaded by the speculative parser and
will join a single in-flight fetch with the <link>.
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61626 for changes under testing/web-platform/tests
Comment 10•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a15c4b8a74c1
https://hg.mozilla.org/mozilla-central/rev/7aa823c607f0
https://hg.mozilla.org/mozilla-central/rev/f90f44ab849f
https://hg.mozilla.org/mozilla-central/rev/b9da6e4f2dc2
Upstream PR merged by moz-wptsync-bot
Updated•20 days ago
|
Description
•