test_beaconOriginHeader.html times out when run twice in a row in the same browser
Categories
(Core :: DOM: Networking, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•6 days ago
|
||
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.
Comment 3•4 days ago
|
||
| bugherder | ||
Description
•