Open Bug 1480984 Opened 6 years ago Updated 2 years ago

Firefox fails to display a really wide PNG

Categories

(Core :: Graphics: ImageLib, defect, P3)

61 Branch
defect

Tracking

()

People

(Reporter: Andrew, Unassigned)

Details

(Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180704003137



Actual results:

PNG at this URL does not display in Firefox.  (Does in Chrome)

https://www.jwz.org/blog/2018/07/png-antics/


Expected results:

The PNG should have displayed.
Status: UNCONFIRMED → NEW
Component: Untriaged → ImageLib
Ever confirmed: true
Product: Firefox → Core
We explicitly not decode images bigger than 64k.

https://searchfox.org/mozilla-central/rev/2466b82b729765fb0a3ab62f812c1a96a7362478/image/imgFrame.cpp#167

Lifting that restriction lets us display the image, although it does not appear to display properly when embedded in the webpage. When I view the image directly it won't display it at its native size of 111972x256, but it seems to be displaying the 13996x32 surface. With WebRender I got the "Surface size too large" warning but otherwise same result.

(Note, it isn't showing at all in Chrome 67.0.3396.99 for me.)
Priority: -- → P3
Whiteboard: [gfx-noted]

Found this after reading https://blog.darrien.dev/posts/you-dont-know-gif/ (see the section about the 1x65535 gif). The error message is misleading, since the GIF itself doesn't contain any errors.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.