Closed Bug 1661006 Opened 4 years ago Closed 4 years ago

Some password manager tests fail intermittently because the 'passwordmgr-processed-form' notification is delayed.

Categories

(Toolkit :: Password Manager, defect, P1)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: enndeakin, Assigned: enndeakin)

References

Details

Attachments

(1 file)

The tests run 'registerRunTests' which sets up a fake form with the id 'observerforcer', then waits for the observer notification that the password manager has processed the form. This is happening at https://searchfox.org/mozilla-central/rev/62f6cc5d9c829bc0c6f18e25f93203a98681ac97/toolkit/components/passwordmgr/test/mochitest/pwmgr_common.js#335

Some tests already have one or more forms within the test. For example, the test 'test_autocomplete_password_generation.html' has three forms in it. These also send form processed notifications on load, however, as far as I can tell, nothing waits for these notifications. The test only waits for the 'observerforcer' notification.

This sometimes leads to the notifications being sent significantly later during the test, causing confusion and failures.

Severity: -- → N/A
Priority: -- → P1
Severity: N/A → S4
Pushed by neil@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6b76b0979ffb
have registerRunTests wait for notifications from all password fields on the test page before continuing, r=MattN
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: