Closed Bug 1293241 Opened 8 years ago Closed 8 years ago

"Show Accounts" shows a empty list

Categories

(Thunderbird :: Instant Messaging, defect)

51 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 51.0

People

(Reporter: Paenglab, Assigned: aceman)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

5.76 KB, patch
aleth
: review+
Details | Diff | Splinter Review
With newest Daily I get by clicking "Show Accounts" an empty list and the Account Wizard opens with empty Chat type list.

Directly opening the Account list shows no errors. A bit later I have this error 99 times:
Mon Aug 08 2016 14:08:39
Error: ReferenceError: AppContants is not defined
Source file: chrome://messenger/content/chat/chat-messenger-overlay.js
Line: 1143

In normal account manager the IM accounts are still listed and the auto connect accounts do connect and are working.
Shouldn't AppContants be AppConstants?

var imServices = {};
Components.utils.import("resource:///modules/chatNotifications.jsm");
Components.utils.import("resource:///modules/imServices.jsm", imServices);
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/AppConstants.jsm");
It's a typo, yes. But it belongs to bug 1293302.
Probably fallout from Bug 1292569.
Blocks: 1292569
So did patch in 1293302 fix this?

If not, you can try https://hg.mozilla.org/try-comm-central/rev/e4f2e0c8d5aab0f82f15500231e6184cc826e440 . It does contain changes in gloda core code outside of tests. But I am not sure if chat accounts would be affected by gloda.
Unfortunately no change when opening the "Show Accounts" dialog.
Attached patch WIP patch (obsolete) — Splinter Review
So this makes the accounts list populated. It may be caused by my patch in bug 1292569 where I changed the getAccount() to proper function*.

After "connecting" an account I still get:
ReferenceError: reference to undefined property this.imAccount imXPCOMUtils.jsm:89:5

Not sure if that is related or not.

Hopefully you can now proceed from here what else is not working.
Attachment #8779035 - Flags: feedback?(richard.marti)
Attachment #8779035 - Flags: feedback?(aleth)
Comment on attachment 8779035 [details] [diff] [review]
WIP patch

"Show Accounts" is working again. Thank you for the fix.
Attachment #8779035 - Flags: feedback?(richard.marti) → feedback+
Comment on attachment 8779035 [details] [diff] [review]
WIP patch

Review of attachment 8779035 [details] [diff] [review]:
-----------------------------------------------------------------

Standard change.
r=jorgk.
(We must get the show back on the road ;-))
Attachment #8779035 - Flags: review+
I'd still like aleth to see it as the are at least 2 getAccounts() in 2 imAccounts.js files in IM code. I tried to only change the mail/components/im/content one.
Comment on attachment 8779035 [details] [diff] [review]
WIP patch

Review of attachment 8779035 [details] [diff] [review]:
-----------------------------------------------------------------

This looks correct to me, but I suspect it's incomplete. It's not just that im/ and chat/ need their own version of the legacy generator removal patch, but also that bug 292569 changed not just getAccounts but also getIter, getProtoOptions, etc and all of these will probably have callers in for...in loops that should be for...of loops now.
Attachment #8779035 - Flags: feedback?(aleth) → feedback+
Attached patch patch v2Splinter Review
Thanks, this seems to be better. Makes also options in TB Account manager to be displayed.

I looked in /chat/* and it seems there everything is already fine with function*.
In /im/* there are some conversions needed. It has some stuff in /mail duplicated (or the other way round). If that is Instantbird, you will probably need to convert it in a new bug as I can't seriously test it.
Assignee: nobody → acelists
Attachment #8779035 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8779089 - Flags: review?(aleth)
Attachment #8779089 - Flags: review?(aleth) → review+
Thanks for taking care of this!

(In reply to :aceman from comment #12)
> I looked in /chat/* and it seems there everything is already fine with
> function*.
> In /im/* there are some conversions needed. It has some stuff in /mail
> duplicated (or the other way round). If that is Instantbird, you will
> probably need to convert it in a new bug as I can't seriously test it.

Yeah, we should take care of that asap as this patch will break IB due to the chat/ change.
I think these are bug 1293004 and bug 1293005.
https://hg.mozilla.org/comm-central/rev/adc56f0cd5b5
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 51.0
(In reply to Patrick Cloke [:clokep] from comment #14)
> I think these are bug 1293004 and bug 1293005.

No, I think those are different change. The problem here was with changes from function to function* (generators), not with iterators.
Keywords: regression
OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → 51 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: