Note: There are a few cases of duplicates in user autocompletion which are being worked on.

TestPilot first-run tab shouldn't open for Thunderbird

RESOLVED FIXED in Thunderbird 11.0


Testing Infrastructure
6 years ago
6 years ago


(Reporter: mconley, Assigned: mconley)


Thunderbird 11.0

Thunderbird Tracking Flags

(thunderbird9+ fixed, thunderbird10+ fixed)



(1 attachment, 1 obsolete attachment)

We noticed this one in bug 700536 - the Account Provisioner modal dialog would block the 3pane, and if the user decided to order an account, the modal would close, the order form tab would open, and then the TestPilot tab would open and steal focus.

Our solution for now is to not open the TestPilot tab unless there are one or more accounts associated with the current profile. If not, we hold off on opening it until next time Thunderbird starts with 1 or more accounts.
Created attachment 577316 [details] [diff] [review]
Patch v1

Here's my first go at it.  Am I duplicating too much code? (_appID, the THUNDERBIRD_APP_ID, etc...)
Assignee: nobody → mconley
Attachment #577316 - Flags: review?(squibblyflabbetydoo)
Blocks: 700536

Comment 2

6 years ago
Comment on attachment 577316 [details] [diff] [review]
Patch v1

Review of attachment 577316 [details] [diff] [review]:

Hmm, you know, I'm sure I submitted this review yesterday. Maybe I dreamt it. Anyway, see my comments below, which were thankfully saved.

::: mail/app/profile/extensions/
@@ +187,5 @@
> +    delete this._appID;
> +    return this._appID = Components.classes[";1"]
> +        .getService(Components.interfaces.nsIXULAppInfo).ID;
> +  },
> +

Since we have this function in two other files already (content/window-utils.js and modules/interface.js), I think it's time we put it somewhere universally accessible to Test Pilot. setup.js might be the best place for this, so you could probably remove the other two instances of it and just call into this.

@@ +645,5 @@
>      }
>      return true;
>    },
> +  _canOpenTabs: function TPS__canOpenTabs() {

I think "_shouldOpenTabs" would be more accurate here.

@@ +652,5 @@
> +      // current profile does not have any accounts associated with it.
> +      Components.utils.import("resource:///modules/iteratorUtils.jsm");
> +      Components.utils.import("resource:///modules/mailServices.js");
> +      let numAccounts =  [x for each (x in fixIterator(MailServices.accounts.accounts))].length;
> +      return numAccounts > 0;

Can't we say "MailServices.accounts.accounts.Count()"? (Possibly a record for number of times "count" is used on one line!)
Attachment #577316 - Flags: review?(squibblyflabbetydoo) → review-
tracking-thunderbird10: --- → +
tracking-thunderbird9: --- → +
Created attachment 579729 [details] [diff] [review]
Patch v2

Thanks for the review!  I've addressed the issues you brought up, and slightly changed the behaviour of this patch:  we now *never* open up the Test Pilot welcome tab, as opposed to waiting until we have 1 or more accounts.

Requesting some UI review to make sure this is the right course of action.
Attachment #577316 - Attachment is obsolete: true
Attachment #579729 - Flags: ui-review?(bwinton)
Attachment #579729 - Flags: review?(squibblyflabbetydoo)
Comment on attachment 579729 [details] [diff] [review]
Patch v2

Stealing review
Attachment #579729 - Flags: review?(squibblyflabbetydoo) → review?(mbanner)
Comment on attachment 579729 [details] [diff] [review]
Patch v2

Yeah, that page seems to contain nothing really useful, and we'll show something similar when the first study pops up, I believe.  ui-r=me.
Attachment #579729 - Flags: ui-review?(bwinton) → ui-review+
Comment on attachment 579729 [details] [diff] [review]
Patch v2

r=me, I'll land this with bitrot fixed when I land bug 709737.
Attachment #579729 - Flags: review?(mbanner)
Attachment #579729 - Flags: review+
Attachment #579729 - Flags: approval-comm-beta+
Attachment #579729 - Flags: approval-comm-aurora+
Summary: TestPilot first-run tab should not open if profile has no accounts in it. → TestPilot first-run tab shouldn't open for Thunderbird
Checked in:
Last Resolved: 6 years ago
status-thunderbird10: --- → fixed
status-thunderbird9: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 11.0
You need to log in before you can comment on or make changes to this bug.