Closed Bug 2095713 Opened 6 days ago Closed 5 days ago

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)

task

Tracking

()

RESOLVED FIXED
163 Branch
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.

Blocks: 2095794

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.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3271b38db000 https://hg.mozilla.org/integration/autoland/rev/a5fb795db440 Forget consumed beacons in beacon-handler.sjs so test_beaconFrame.html passes when run again, r=necko-reviewers,valentin.
Status: ASSIGNED → RESOLVED
Closed: 5 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: