browser_last_window_close_trigger.js fails when run twice in the same browser (Bypass metric not recorded yet - 1 == null)
Categories
(Firefox :: General, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
test_second_close_attempt_does_not_redispatch in browser_last_window_close_trigger.js checks the absolute value of the Glean counter messagingSystem.lastWindowCloseTriggerBypassed (null, then 1). Glean counters keep their value for as long as the process runs, so when the test runs a second time in the same browser (as the upcoming mochitest-browser-chrome-repeat jobs do), the checks see 1 and 2 instead.
The fix is to call Services.fog.testResetFOG() at the start of the task.
Comment 1•17 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Telemetry' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Comment 2•17 days ago
|
||
The lastWindowCloseTriggerBypassed counter keeps the value recorded by a previous run of the test in the same browser, so test_second_close_attempt_does_not_redispatch failed when the test was run twice.
Updated•17 days ago
|
Updated•7 hours ago
|
Description
•