Closed Bug 1000203 Opened 10 years ago Closed 10 years ago

Incorrect value checked for domains length in readFromXML

Categories

(MailNews Core :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 31.0

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file)

The check here:

http://mxr.mozilla.org/comm-central/source/mailnews/base/prefs/content/accountcreation/readFromXML.js#53

is incorrect.

It should be:

if (d.domains.length == 0)
Isn't it referencing the 'domain' in the loop just above and should be included inside it?
No, it's supposed to be checking if it got any domains at all as a result of the for loop.

I already checked with Ben who wrote the code and he agreed.
Attached patch patchSplinter Review
OK
Attachment #8411226 - Flags: review?(ben.bucksch)
Attachment #8411226 - Flags: review?(ben.bucksch) → review+
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/97318005efc0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 31.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: