Closed Bug 748830 Opened 12 years ago Closed 12 years ago

Account Setup Wizard loaded on every startup

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 15.0

People

(Reporter: BenB, Assigned: mkmelin)

References

Details

(Keywords: memory-footprint, perf, regression)

Attachments

(1 file)

Reproduction:
* Enable log4moz logging for module "mail.wizard"
* Start Thunderbird (with accounts already set up)

Actual result:
Immediately after startup:
2012-04-25 18:36:00     mail.wizard     INFO    Initializing setup wizard
2012-04-25 18:36:00     mail.wizard     INFO    email account setup dialog
=> JS code of the wizard is loaded
No account wizard shows up

Expected result:
No account wizard shows up
The above log messages don't show
No JS code of the wizard is loaded

Impact:
Useless processing, slows startup, pointless.
Keywords: regression
Keywords: footprint, perf
Which exact TB version is this about? Could you please set the "Version" field acordingly?
Version: unspecified → Trunk
Attached patch proposed fixSplinter Review
This should do it, but i'm not really sure when this code executes in practice. I just moved the loading to where it's needed which seems like in very special cases.

On this machine we win 35ms in startup time.
Assignee: bwinton → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #619424 - Flags: review?(bwinton)
From bug 686347.
Blocks: 686347
Severity: minor → normal
OS: Linux → All
Hardware: x86_64 → All
Comment on attachment 619424 [details] [diff] [review]
proposed fix

Patch looks good, thanks.
Attachment #619424 - Flags: feedback+
Comment on attachment 619424 [details] [diff] [review]
proposed fix

Looks good, and all the tests seem to pass, and quicker startup is never a bad thing.  :)

r=me!

Thanks,
Blake.
Attachment #619424 - Flags: review?(bwinton) → review+
http://hg.mozilla.org/comm-central/rev/363f59461e36
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 15.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: