Closed Bug 541283 Opened 15 years ago Closed 14 years ago

Persona installation broken for Thunderbird 3.0 + personas 1.5

Categories

(Mozilla Labs Graveyard :: Personas Plus, defect, P1)

x86
All

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rdoherty, Assigned: jose)

Details

Attachments

(1 file)

STR:
Thunderbird 3.0.1
Personas 1.5.1

Tools => Personas => New & Featured => 41xxx more from new and featured
Mouseover thumbnail, 'apply' is missing
Click on thumbnail, orange button says 'get personas'

I never thought to check for Thunderbird in the detection for personas support, need to figure out what's different in Thunderbird.
From comments in the google group, it appears that it was working in Personas 1.4 or 1.5. Myk: did anything change with Persona detection? (CheckPersonas event)
I can confirm that it works with 1.5 but not with 1.5.1.  But I don't see anything in this complete set of changes between those two versions that would account for the difference.
Erm, actually I do see the problem.  It's a regression from the fix for bug 535815.  The Error Console shows the error:

Error: gBrowser is not defined
Source File: chrome://personas/content/personas.js
Line: 281

That's because the fix assumes the presence of gBrowser when adding the TabSelect event listener on line 281 of personas.js, but that global variable doesn't exist in Thunderbird.

      gBrowser.tabContainer.addEventListener("TabSelect", this, false);

I expect there's a Thunderbird equivalent, although I don't know what it is.  cc:ing standard8, who can probably tell us.
What are you trying to do with TabSelect? Not quite sure what the intention is there.

Anyway, assuming you're wanting to listen for tab selection changes, then take a look at:

http://mxr.mozilla.org/comm-central/source/mail/base/content/tabmail.xml#222

So you probably want to use something like document.getElementById("tabmail").registerTabMonitor(...);
Unfortunately this bug was introduced when we fixed bug 535815. The code must be changed to support Thunderbird.
Assignee: nobody → jose
Status: NEW → ASSIGNED
(In reply to comment #5)
> Unfortunately this bug was introduced when we fixed bug 535815. The code must
> be changed to support Thunderbird.

Ok, so if you just want to reset on switching tab, then using the tab monitor like I mentioned in comment 4 should do exactly what you want.
This is actually a Personas extension bug, so moving it to the right product/component.  Also tentatively setting priority/severity to P1, as I think it's very important to fix this regression in 1.5.1 (and spin a 1.5.2 release to get it out to users), although Ryan/Nick are in charge of triage/prioritization these days and should make the final call.
Assignee: jose → cbeard
Severity: normal → major
Component: getpersonas.com → Personas
Priority: -- → P1
Product: Websites → Mozilla Labs
QA Contact: getpersonas-com → personas
Target Milestone: --- → --
Version: other → unspecified
Oops, I didn't mean to reset the assignee.
Assignee: cbeard → jose
Fixed in changeset: http://hg.mozilla.org/labs/personas/rev/6cf263d5649c

Please verify. Thanks.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Marking as 1.5 for 1.5.2 release.
Target Milestone: -- → 1.5
verified fixed in 1.5.2 personas plus candidate and thunderbird 3.0.3 !
Status: RESOLVED → VERIFIED
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: