browser_103_assets.js module variant never loads a valid module, intermittently fails 'unexpected amount of normal request made'
Categories
(Core :: Networking, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
early_hint_asset.sjs has no as=module branch, so the module used by the module tests of browser_103_assets.js is served empty with no Content-Type and always fails to load ("disallowed MIME type").
If the hinted modulepreload has already failed when the page's import starts, the module is fetched again, and test_103_asset_reload (module+reload): unexpected amount of normal request made fails. This showed up in a mochitest-browser-chrome-repeat job on macOS.
The fix serves a real module. The test's existing exception for scripts served from the navigation cache is extended to modules.
| Assignee | ||
Comment 1•17 days ago
|
||
The sjs had no module branch, so the module was served without a Content-Type and
always failed to load. The import then only reused the hinted modulepreload when it
started before the preload failed, otherwise it fetched the module again, failing
the module+reload check. Once the module loads, the module+cached variant can be
served from the navigation cache, like scripts already are.
Comment 3•17 days ago
|
||
| bugherder | ||
Comment 4•17 days ago
|
||
| bugherder | ||
Updated•3 days ago
|
Description
•