Closed Bug 1503611 Opened 6 years ago Closed 4 years ago

Preview of theme is stretched

Categories

(Toolkit :: Add-ons Manager, defect, P3)

64 Branch
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr60 --- unaffected
firefox63 --- unaffected
firefox64 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix

People

(Reporter: TheOne, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached image screenshot.png
I am running 64b5, my add-ons manager shows some theme previews stretched. See "Litefox" and "Dark Fox" in the attached screenshot. Interestingly, "Fiery Lion" looks ok.
Priority: -- → P3
I don't see this happening on Nightly. Andreas, will you check again?
Flags: needinfo?(awagner)
I've reproduced this. I think I did it by installing a theme with about:addons open, but not sure if that's required. It looks like one screenshot is cached and it isn't always the largest one (but often is).
Flags: needinfo?(awagner)
It looks like updates are the culprit here.

STR

1. Install a theme
2. Go to about:addons#themes
3. Check for updates
4. Refresh the page

Expected: No changes.
Actual: Sometimes the preview image will change to the smaller one.

This appears to be due to the update API returning preview.jpg [1] instead of preview_large.jpg which is used when installing.

I filed https://github.com/mozilla/addons-server/issues/10009 against addons-server to fix the issue. I'm guessing updating to static themes will also fix this since it will be using a different code path.

There is also the issue of the built-in themes (from Customize) which ship with the small preview and don't include an updateURL (which also causes an error when updating since it doesn't check if there is an update URL or not).

[1] https://github.com/mozilla/addons-server/blob/8daf0e5383158037253f78e2f5cee9a69df472c8/services/theme_update.py#L184
Depends on: 1508777
Marking fix-optional for 65 and 66 so that these already triaged issues don't show up repeatedly in weekly regression triage. Happy to take a patch in nightly.

Removing and installing the addon fixed the bug.
But the installed theme is now apparently a static one, after the big theme conversation.
When /if all installed themes are updated to the converted ones, the bug would be fixed.

Based on comments 5 and 7 it looks like this should be fixed now.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: