Closed Bug 2092068 Opened 16 days ago Closed 15 days ago

browser_bug1716290-{1,2,3,4}.js fail when run twice in the same browser

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

The file_bug1716290-N.sjs scripts used by docshell/test/browser/browser_bug1716290-1.js through -4.js track their loads with setState("loaded") / setState("reloaded") and never clear that state. On a second run in the same browser session (the upcoming mochitest-repeat jobs, or test-verify), the first load gets the post-detection response, so Doc should report Shift_JIS initially fails. This is also why browser_bug1716290-1.js has a verify-standalone skip-if (bug 1995208).

Fix: reset the state when the final response is served, and remove the skip-if.

The .sjs state survived the test, so a second run served the post-detection response on its first load. The verify-standalone skip-if (bug 1995208) failed the same way.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1fbf48e6158c https://hg.mozilla.org/integration/autoland/rev/e5f28fb5b65c Reset the server state of the bug 1716290 charset tests once the forced detection reload is served, r=dom-core-reviewers,smaug.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 15 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: