test_import_with_cache.html fails when run twice in the same session because its sjs state persists
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
When dom/worklet/tests/test_import_with_cache.html runs a second time in the same session (as the upcoming mochitest-plain-repeat jobs do), every addModule() call rejects and it fails with "Import should load a resource."
server_import_with_cache.sjs serves the script once and answers 404 afterwards, tracking that with an unkeyed setState("alreadySent") that lasts for the whole job's web server. The second run's import therefore gets a 404.
The patch keys that state by a per-run query string, which also lets the test drop its verify-standalone skip.
| Assignee | ||
Comment 1•6 days ago
|
||
server_import_with_cache.sjs answers 404 to every request after the first one, and its server state outlived the test, so a second run got 404 for all its imports. Key that state by a per-run query string, which also lets the test run under verify-standalone.
Comment 4•4 days ago
|
||
| bugherder | ||
Description
•