Open Bug 2075113 Opened 2 months ago Updated 2 months ago

[HNT] Homepage tab thumbnail preview loses UI details and displays placeholder logo upon device rotation (Landscape mode)

Categories

(Firefox for Android :: Homepage, defect)

All
Android
defect

Tracking

()

People

(Reporter: apetridean, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group5])

Attachments

(1 file)

Steps to reproduce

  1. Launch Fenix with "Homepage as a New Tab" enabled.
  2. Open a Homepage tab.
  3. Open the Tabs Tray in Portrait mode and note the tab thumbnail (shows full homepage layout with shortcuts and search bar).
  4. Rotate the device to Landscape orientation.
  5. Inspect the Homepage tab card in the Tabs Tray.
  6. Switch to Private Browsing mode and repeat steps 2–5.

Expected Result:

The tab thumbnail in the Tabs Tray should accurately display the rendered preview of the Homepage layout in both Portrait and Landscape orientations.

Actual Behavior:

In Landscape orientation, the Homepage tab thumbnail preview disappears and renders only a generic Firefox logo/blank card.

Device information

Firefox version: Nightly 158.0a1 - 24.09.2026
Android device model: Lenovo Yoga Tab 11 (Android 12), Samsung S23 Ultra (Android 14)

Any additional information?

Reproducible in both Normal and Private Browsing modes.

TabLayout.kt derives the requested thumbnail size from the full tray width, constraints.maxWidth - totalSpacing, without dividing by numberOfGridColumns, so ImageLoadRequest.size is already several times the cell being drawn and grows further in landscape, where maxWidth roughly doubles and gridItemAspectRatio goes from 0.8 to 1. ThumbnailStorage.kt passes that value as minSize and AndroidImageDecoder.kt rejects the stored bitmap once min(w, h) * 2 < minSize, so the load returns null and ThumbnailImage.kt falls back to ic_firefox for about:home; below that cutoff the same oversized request upscales the bitmap instead, which is the loss of detail. I triaged this from the description and the code, without viewing the attached recording.

Fix: 1. Divide thumbnailWidth by columns in thumbnailSizePx so the request matches the cell actually rendered. 2. Re-capture the homepage on configuration change, since HomepageThumbnails.kt fires only on a selected-tab change and leaves the bitmap portrait-shaped for a landscape-aspect cell.

Suggested severity: S3. A homepage tab becomes unidentifiable in the tabs tray whenever the device is held in landscape, but nothing is lost and rotating back to portrait restores the preview.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope, ai-triage-wrong-fix, ai-triage-shallow-fix.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

Whiteboard: [fxdroid] [group5]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: