test_beaconFrame.html fails when run twice in the same session because beacon-handler.sjs keeps consumed beacons as empty objects
Categories
(Core :: DOM: Networking, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
When dom/tests/mochitest/beacon/test_beaconFrame.html runs a second time against the same server (mochitest-plain-repeat jobs, --repeat, --verify), every check fails with data and mimetype undefined.
finishControlResponse in beacon-handler.sjs replaces a consumed beacon with {} in the shared server state. getFinishOrWait then treats that entry as an already received beacon (item.data !== "" is true for undefined), so a getBeacon request that arrives before its POST is answered right away instead of waiting.
The fix deletes the consumed entry and removes the verify-standalone skip-if (added in bug 1995208), which was the same failure.
| Assignee | ||
Comment 1•6 days ago
|
||
finishControlResponse replaced a consumed beacon with an empty object, which a
later getBeacon request for the same id took for an already received beacon,
answering with undefined data and mimetype instead of waiting for the POST.
This also lets the test run under verify-standalone again, whose skip-if was
added in bug 1995208.
Comment 3•5 days ago
|
||
| bugherder | ||
Description
•