Closed Bug 2092274 Opened 13 days ago Closed 8 days ago

browser_privatebrowsing_redesign_telemetry.js fails when run twice in the same browser

Categories

(Firefox :: Private Browsing, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

When browser_privatebrowsing_redesign_telemetry.js runs twice in the same browser (the upcoming mochitest-repeat jobs), the second test_redesign_exposure_recorded times out waiting for the exposure event, and then leaves its private window open ("Found an unexpected browser window at the end of test run").

AboutPrivateBrowsingChild records the privateWindowRedesign exposure with recordExposureEvent({ once: true }), and _didSendExposureEvent stays set in the privileged content process, which outlives the first run. The test should reset the flag in that process when it is done, as other Nimbus tests already do.

The exposure timeout throws past closeWindow, so a second run also left
its private window open ("Found an unexpected browser window").

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e6e284e2c1f9 https://hg.mozilla.org/integration/autoland/rev/b4c1b84793c3 Reset the privateWindowRedesign exposure flag in browser_privatebrowsing_redesign_telemetry.js, r=nimbus-reviewers,beth.
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: