Open Bug 1916850 Opened 1 year ago Updated 1 year ago

Tab previews show incorrect previews for large images

Categories

(Firefox :: Tabbed Browser, defect, P3)

Firefox 130
ARM64
macOS
defect

Tracking

()

People

(Reporter: 5silentrain, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(8 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0

Steps to reproduce:

I recently noticed that on some large images, tab previews show incorrect previews compared to Chrome and Safari. For example, open these two large images in a new tab and left-click on the girl with purple hair, who is located on the right side of both photos, to enlarge her face.
Photo 1: https://i.imgur.com/5vPJwkY.jpeg
Photo 2: https://i.imgur.com/rKzDDAD.jpeg

Then switch to another tab and hover over the tabs with these photos. The preview will not show the girl with purple hair, but completely different parts of the photo.
Screenshot 1: https://i.imgur.com/s0SKA9N.png
Screenshot 2: https://i.imgur.com/38DXONC.png

In Chrome and Safari, in this case, previews work correctly.
Chrome 1: https://i.imgur.com/gNHoC03.png
Chrome 2: https://i.imgur.com/VVU2yYX.png

Safari 1: https://i.imgur.com/8XbzhiH.png
Safari 2: https://i.imgur.com/VA9a8iG.png

OS: Unspecified → macOS
Hardware: Unspecified → ARM64

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

Can anyone confirm this bug? 🤔

Hi 5silentrain! Thanks for reporting this. I am unable to reproduce this on latest Firefox Nightly 132. Some changes have been made to the way screenshots are resized for tab previews, can you try to update to the latest Firefox Nightly and see if the issue is still occurring?

Flags: needinfo?(5silentrain)

Updated to version 132.0b1, but the bug is still easily reproducible.

Flags: needinfo?(5silentrain)

Please ask someone else to reproduce this bug.

I can reproduce the bug with the given steps in Nightly on Windows 11, it looks like the screenshot tool is not considering the viewport visible area but instead crops another area.
You must open the Images in a new tab so it's basically just a tab containing a large image (not an imguri page), then clicking on the image makes it actual size since by default it's shrinked. Only a part of it will be visible, not the part shown in the screenshot.

Blocks: tab-preview
Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

I can reproduce the bug…

Thanks! 🤝

The issue still exists in Firefox Developer Edition version 140.0b2.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: