Closed Bug 2092321 Opened 17 days ago Closed 17 days ago

browser_103_assets.js module variant never loads a valid module, intermittently fails 'unexpected amount of normal request made'

Categories

(Core :: Networking, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
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.

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.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0fa97dbe342c https://hg.mozilla.org/integration/autoland/rev/590b150a467f Serve a real JavaScript module from early_hint_asset.sjs in browser_103_assets.js, r=necko-reviewers,valentin.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: