Closed Bug 2094425 Opened 9 days ago Closed 4 days ago

test_beaconOriginHeader.html times out when run twice in a row in the same browser

Categories

(Core :: DOM: Networking, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

dom/tests/mochitest/beacon/beacon-originheader-handler.sjs holds the query XHR's response with setObjectState("xhr-response", ...) when the XHR reaches the server before the beacon. It never clears that state after the beacon has answered the response.

In mochitest-plain-repeat jobs the test runs twice in a row. If the second run's beacon arrives first, it finds the finished response from the first run, clears the stored originHeader and answers the dead response. The new query XHR then waits forever, and the test times out with "No checks actually run".

The fix clears the object state once the held response has been answered.

Blocks: 2095794

When the query XHR reached the server before the beacon, its finished response stayed in the object state, and the next run's beacon found that stale response, cleared the stored header and answered the dead response, so the next query hung until the test timed out.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/833afda2f941 https://hg.mozilla.org/integration/autoland/rev/db9e42aa96f3 Forget the held XHR response once beacon-originheader-handler.sjs has answered it, r=necko-reviewers,kershaw.
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: