browser_create_profile_page_test.js fails on repeat: test_new_profile_delete_telemetry leaks a quit-application-requested observer
Categories
(Toolkit :: Startup and Profile System, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
test_new_profile_delete_telemetry in browser/components/profiles/tests/browser/browser_create_profile_page_test.js adds a quit-application-requested observer that cancels the quit, and never removes it. When the test runs a second time in the same browser (mochitest-browser-chrome-repeat, test-verify), that observer cancels the quit triggered by test_new_profile_beforeunload's Delete click. deleteCurrentProfile is then never called, and the test fails with Uncaught exception in test - undefined - timed out after 50 tries.
The patch uses TestUtils.topicObserved so the observer is removed after its first notification, and removes the Linux verify-standalone skip-if that this failure caused.
| Assignee | ||
Comment 1•13 days ago
|
||
The observer cancelling quit was never removed, so when the test runs a second time in the same browser, it cancels the quit that test_new_profile_beforeunload expects to reach deleteCurrentProfile. Test-verify on Linux runs it 10 times in one browser and fails the same way, so the Linux skip-if goes. The verify-standalone skip-ifs come from bug 1995208, so the remaining Windows one now cites it.
Comment 3•9 days ago
|
||
| bugherder | ||
Description
•