WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
14999
WebKit refuses to display incomplete BMP images
https://bugs.webkit.org/show_bug.cgi?id=14999
Summary
WebKit refuses to display incomplete BMP images
Peter Kasting
Reported
2007-08-17 13:08:24 PDT
When asked to open an incomplete image, Firefox decodes as much as it can and displays the results; Safari shows a broken image icon. I think WebCore should only refuse to display the image if nothing can be decoded at all (couldn't connect to server, etc.), or perhaps if the decoder sets m_failed to true (indicating an undecodable image). For images where the decoder happily decodes as much as it can and we simply never have enough data to transition to FrameComplete, it seems better to show the partial image than nothing. Test image to be attached shortly.
Attachments
Incomplete BMP
(9.20 KB, image/bmp)
2007-08-17 13:09 PDT
,
Peter Kasting
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Peter Kasting
Comment 1
2007-08-17 13:09:32 PDT
Created
attachment 16011
[details]
Incomplete BMP This is a BMP file with the last 100 bytes trimmed off.
mitz
Comment 2
2007-08-17 15:30:01 PDT
In my testing, incomplete JPEGs are displayed. I think behavior may depend on the platform's image decoding capabilities.
Peter Kasting
Comment 3
2007-08-18 00:13:12 PDT
Hmm. This may be specific to BMPs. Tested on Safari 3 for Windows. Certainly if the image decoder doesn't mark the frame status as FramePartial until it's done, we won't have this issue. And regardless, things will work fine while the image is still being transmitted - this only refers to the behavior once "receivedAllData" is true.
Robert Blaut
Comment 4
2008-02-24 13:37:10 PST
Confirmed problem also on Leopard. Opera also displays the test picture as well as Firefox.
Peter Kasting
Comment 5
2010-04-29 11:25:52 PDT
This still reproduces in Safari/Win 4.0.5. It does not reproduce in Chromium as I have made the open-source BMPImage* decoder classes behave like Fx/Opera/IE. (I forget whether I did this pre- or -post-filing this bug.)
Peter Kasting
Comment 6
2010-04-29 11:26:40 PDT
I believe Mark has done some work on image decoding in the past few months.
Radar WebKit Bug Importer
Comment 7
2022-07-12 10:50:50 PDT
<
rdar://problem/96898074
>
Brent Fulgham
Comment 8
2022-07-12 10:50:54 PDT
This continues to be an issue in Safari 15.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug