WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28025
Add .ico decoding LayoutTest
https://bugs.webkit.org/show_bug.cgi?id=28025
Summary
Add .ico decoding LayoutTest
Peter Kasting
Reported
2009-08-05 13:13:48 PDT
To my knowledge there are no tests of .ico decoding. I'll add one that tests a few different types of decoding (1-bit, 8-bit, 32-bit, and multiple directory entries).
Attachments
.ico LayoutTest
(30.52 KB, patch)
2009-08-05 13:20 PDT
,
Peter Kasting
eric
: review+
pkasting
: commit-queue+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Peter Kasting
Comment 1
2009-08-05 13:20:51 PDT
Created
attachment 34167
[details]
.ico LayoutTest Here's the test. Note that the CG .ico decoder has a bug in how it decodes 1-bit images; I've filed this on Apple's bug tracker and commented on it in the test, so if the bug gets fixed it will hopefully be obvious that the expected PNG should change. There are still other types of decoding that could be tested (PNG-in-.ico, negative tests of broken icons, a BMP decoder test that checks RLE-encoded data), but this is at least better than nothing.
Darin Adler
Comment 2
2009-08-05 13:26:42 PDT
(In reply to
comment #1
)
> I've filed this on Apple's bug tracker and commented on it in the > test, so if the bug gets fixed it will hopefully be obvious that the expected > PNG should change.
Would you be willing to share the Apple bug number?
Peter Kasting
Comment 3
2009-08-05 13:37:08 PDT
(In reply to
comment #2
)
> (In reply to
comment #1
) > > I've filed this on Apple's bug tracker > > Would you be willing to share the Apple bug number?
Sure, it's ID 7114290. I don't think it's very important to fix -- probably few if any icons in the wild are 1-bit.
Eric Seidel (no email)
Comment 4
2009-08-06 16:10:17 PDT
Comment on
attachment 34167
[details]
.ico LayoutTest LGTM. Seems we should file a bug about the CG decoder.
http://radar.apple.com/
is probably the right place for that, even though I hate that site. :(
Peter Kasting
Comment 5
2009-08-06 16:11:59 PDT
(In reply to
comment #4
)
> Seems we should file a bug about the CG decoder. >
http://radar.apple.com/
is probably the right place for that, even though I > hate that site. :(
I am confused. I already said above that I'd filed a bug for this.
Peter Kasting
Comment 6
2009-08-06 17:26:07 PDT
Fixed in
r46871
.
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