Closed Bug 532741 Opened 15 years ago Closed 15 years ago

Customizing a persona requires a header and footer for the changes to stick

Categories

(Mozilla Labs Graveyard :: Personas Plus, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tchung, Assigned: jose)

Details

Attachments

(1 file)

When customizing a persona, the user needs to include a header or footer before their persona becomes visible. Simply editing the Text or Accent color isn't enough.

Repro:
1) install personas 1.5 extension
2) enable custom persona setting
3) Edit the Text or accent color to something other then default
4) Verify unless you apply a header or footer, the custom persona will not be applied.

Expected:
- Editing the text or accent color should be applied, minus having a custom header or footer or not.
Depends on: 529968
This happens because the code now relies on the LightweightThemeManager object (when using Personas in Firefox 3.6+) to apply and preview personas, even custom ones. This object is probably enforcing all these properties to be set, instead of just applying the ones which are available (e.g. accent color without header image).
IMHO, custom persona bugs should in general not block the release of Personas 1.5, since custom personas are a relatively hidden feature that relatively few users use.
(In reply to comment #1)
> This happens because the code now relies on the LightweightThemeManager object
> (when using Personas in Firefox 3.6+) to apply and preview personas, even
> custom ones. This object is probably enforcing all these properties to be set,
> instead of just applying the ones which are available (e.g. accent color
> without header image).

Jose, is there a workaround for this problem? Agree with Myk that this is not a blocker for 1.5, so targeting this fix to 1.6.
Assignee: cbeard → jose
No longer depends on: 529968
Target Milestone: -- → 1.6
(In reply to comment #3)
> (In reply to comment #1)
> > This happens because the code now relies on the LightweightThemeManager object
> > (when using Personas in Firefox 3.6+) to apply and preview personas, even
> > custom ones. This object is probably enforcing all these properties to be set,
> > instead of just applying the ones which are available (e.g. accent color
> > without header image).
> 
> Jose, is there a workaround for this problem? Agree with Myk that this is not a
> blocker for 1.5, so targeting this fix to 1.6.

The workaround would be to fall back to the old code when a custom persona is set. Ideally the change should be done in the lightweight themes code instead of the add-on code, but I guess for now we can do this.
Could we perhaps specify a data: URL containing a 1px by 1px transparent PNG for images that are missing?
(In reply to comment #5)
> Could we perhaps specify a data: URL containing a 1px by 1px transparent PNG
> for images that are missing?

That's a great idea, definitely better than using the old code.
Status: NEW → ASSIGNED
This effectively fixes the issue, as Myk cleverly suggested. I submitted a patch for him to review because I'm not sure whether the placement and naming of the image constant is correct.
Attachment #416097 - Flags: review?(myk)
Comment on attachment 416097 [details] [diff] [review]
Transparent 1x1px image patch

This looks good, and the placement and naming seems fine. r=myk
Attachment #416097 - Flags: review?(myk) → review+
Committed in changeset http://hg.mozilla.org/labs/personas/rev/0914c5ac2779.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Note: I included this fix in Personas 1.5rc2, which I spun earlier today:

https://ftp.mozilla.org/pub/mozilla.org/labs/personas/personas-1.5rc2.xpi
Thanks for the quick fix guys.  Looks to be working now on Personas 1.5rc2.
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: