Closed Bug 2092277 Opened 13 days ago Closed 9 days ago

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)

task

Tracking

()

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

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.

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d31e9d2098f1 https://hg.mozilla.org/integration/autoland/rev/99311c4faaf5 Remove the quit-application-requested observer of test_new_profile_delete_telemetry when done, r=mossop.
Status: ASSIGNED → RESOLVED
Closed: 9 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: