Closed Bug 758777 Opened 12 years ago Closed 12 years ago

Account Provisioner tab should still act normally if persisted and restored

Categories

(Thunderbird :: Account Manager, defect)

x86
All
defect
Not set
normal

Tracking

(thunderbird13 fixed, thunderbird14 fixed)

RESOLVED FIXED
Thunderbird 15.0
Tracking Status
thunderbird13 --- fixed
thunderbird14 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file, 1 obsolete file)

STR:

1. Go to File > New > Get a New Mail Account
2. Do a search with Hover.com, choose a result.
3. When the order form tab opens, quit Thunderbird.
4. Restart Thunderbird, and complete your order.

What happens?

The XML listener doesn't get re-attached when the session is restored, so the user sees the XML.

What's expected?

The tab should work as expected, and create the account or head back to the Account Provisioner dialog when it sees XML being passed back.
This happens because we're not re-attaching our listener when the Account Provisioner tab is restored.
Alternative STR - instead of shutting down TB, just close the tab, and then undo the closure.
Attached patch Patch v1 (obsolete) — Splinter Review
Adds persist / restore capabilities to accountProvisionerTab, and modifies our tests to try those functions out.
Attachment #627758 - Flags: ui-review?(bwinton)
Attachment #627758 - Flags: review?(bwinton)
Blocks: 759163
Comment on attachment 627758 [details] [diff] [review]
Patch v1

As mentioned in IRC, since this basically makes things work the way they're supposed to, I don't think it needs a ui-review.

>+++ b/mail/components/newmailaccount/content/accountProvisionerTab.js
>@@ -30,34 +30,66 @@ let accountProvisionerTabType = Object.c
>+  // Since there's only one tab of this type ever, we're OK to stash this
>+  // stuff here.

We should document that assumption somewhere more public, I think.  It seems important.

>+/**
>+ * Re-open the accountProvisionerTab with all fo the stuff we stashed in

Typo: "fo" -> "of".

Other than that, I like it, so r=me, too.

Later,
Blake.
Attachment #627758 - Flags: ui-review?(bwinton)
Attachment #627758 - Flags: review?(bwinton)
Attachment #627758 - Flags: review+
Summary: Account Provisioner tab should still act normally if the session was restarted → Account Provisioner tab should still act normally if persisted and restored
This is pretty low-risk, since it only affects the accountProvisionerTab.
Attachment #627940 - Flags: approval-comm-beta?
Attachment #627940 - Flags: approval-comm-aurora?
Attachment #627940 - Flags: approval-comm-beta?
Attachment #627940 - Flags: approval-comm-beta+
Attachment #627940 - Flags: approval-comm-aurora?
Attachment #627940 - Flags: approval-comm-aurora+
Attachment #627758 - Attachment is obsolete: true
comm-central: https://hg.mozilla.org/comm-central/rev/49b9049983eb
comm-aurora: https://hg.mozilla.org/releases/comm-aurora/rev/cf972030f616
comm-beta: https://hg.mozilla.org/releases/comm-beta/rev/8b55eb005181
Status: NEW → RESOLVED
Closed: 12 years ago
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: