Closed Bug 1133581 Opened 11 years ago Closed 10 years ago

"childrenNode is null" error when creating new account from Account central and skipping Account provisioner

Categories

(MailNews Core :: Account Manager, defect)

defect
Not set
minor

Tracking

(thunderbird38+ fixed)

RESOLVED FIXED
Thunderbird 39.0
Tracking Status
thunderbird38 + fixed

People

(Reporter: aceman, Assigned: aceman)

References

Details

Attachments

(1 file, 1 obsolete file)

STR: 1. on Account central, click 'Create a new account', Email. 2. in Account provisioner, click 'Skip this'. Error is shown in console. Timestamp: 16.02.2015 22:09:20 Error: TypeError: childrenNode is null Source File: chrome://messenger/content/AccountManager.js Line: 165
Attached patch patch (obsolete) — Splinter Review
I traced it to msgNewMailAccount where we call selectServer(). For some reason it thinks there is an account manager, while there is not (only the account creation wizard). This seems to only happen when opened from the Account central, not from other means (e.g. File menu). So I make it to really check if Account manager window is open. But I also think that call is useless while the Account wizard isn't modal (temporarily). The call is run immediately after opening the wizard so there is no account yet.
Attachment #8565155 - Flags: review?(mkmelin+mozilla)
How does modal ever become true?
Flags: needinfo?(acelists)
(In reply to Ian Neal from comment #2) > How does modal ever become true? Sorry that was the wrong question, it was meant to be "When modal becomes true, does it do the right thing?"
I hope so, but even if not, I hope the added code makes the coder changing to modal think about it better.
Flags: needinfo?(acelists)
Comment on attachment 8565155 [details] [diff] [review] patch Review of attachment 8565155 [details] [diff] [review]: ----------------------------------------------------------------- I don't think I like the modal part of this. ::: mailnews/base/prefs/content/accountUtils.js @@ +445,3 @@ > window.openDialog("chrome://messenger/content/accountcreation/emailWizard.xul", > + "AccountSetup", "chrome,titlebar,centerscreen" + > + (modal ? "modal" : ""), missing comma, not that it matter since modal you always have modal false
Attachment #8565155 - Flags: review?(mkmelin+mozilla) → review-
So what do you propose? Should I have unconditional return without the hints for future coders? :)
Not sure what a proper fix would be. Just a comment and return (if necessary) would be better than the variable.
Attached patch patch v2Splinter Review
OK, no problem.
Attachment #8565155 - Attachment is obsolete: true
Attachment #8565711 - Flags: review?(mkmelin+mozilla)
Attachment #8565711 - Flags: review?(iann_bugzilla)
Attachment #8565711 - Flags: review?(mkmelin+mozilla) → review+
Attachment #8565711 - Flags: review?(iann_bugzilla) → review+
OS: Linux → All
Product: Thunderbird → MailNews Core
Hardware: x86 → All
Thanks.
Keywords: checkin-needed
Eliminating spurious errors is something we need to do to clean up for release.
Comment on attachment 8565711 [details] [diff] [review] patch v2 Pushed https://hg.mozilla.org/comm-central/rev/afdb81ec2f4a We'll look to uplift to aurora after nightly cycle.
Attachment #8565711 - Flags: approval-comm-aurora?
Keywords: checkin-needed
Target Milestone: --- → Thunderbird 39.0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8565711 - Flags: approval-comm-aurora? → approval-comm-aurora+
Depends on: 1159626
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: