Closed Bug 1714761 Opened 3 years ago Closed 3 years ago

[perma] comm/mail/test/browser/account/browser_accountTelemetry.js | A promise chain failed to handle a rejection: can't access property "noPassword", this.protocol is null - stack: get _passwordRequired@resource:///modules/imAccounts.jsm:621:12

Categories

(Chat Core :: IRC, defect, P5)

Tracking

(thunderbird_esr78 unaffected)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr78 --- unaffected

People

(Reporter: intermittent-bug-filer, Assigned: freaktechnik)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

This appears to be triggered by the creation of an IRC account in the test. I don't think any of our changes at the time caused it, and there's a big list of m-c changes.

Component: General → IRC
Flags: needinfo?(martin)
Product: Thunderbird → Chat Core
Version: unspecified → trunk

This is most likely a race that we just started losing due to some timing change (or the logins getting initialized within the test context, thus the promise resolving?): https://searchfox.org/comm-central/rev/7893eeaf930fcc8923c0ca59d5ed4e3be455d5a5/chat/components/src/imAccounts.jsm#204

I guess the solution is to make sure the imAccount we create is initialized enough that it has a protocol.

Flags: needinfo?(martin)

I think I have a fix, though I'm slightly confused how the protocol can be intact at line 208 of imAccounts.jsm and then be destroyed at 220. I don't see anything that would let other code run in between those two lines.

Assignee: nobody → martin
Status: NEW → ASSIGNED

Also disables OTR for browser_accountTelemetry.js due to a race with key generation when the account is removed.

See Also: → 1715293
Target Milestone: --- → 91 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/9d4c932955c5
Fix race in imAccount constructor between account destruction and login service. r=clokep

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: