WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
114650
WebKit should not decode or support PDF favicons
https://bugs.webkit.org/show_bug.cgi?id=114650
Summary
WebKit should not decode or support PDF favicons
Tim Horton
Reported
2013-04-15 17:25:16 PDT
No other browser I can find supports this anyway. *We* don't even successfully display the image, but we try to. <
rdar://problem/10133914
>
Attachments
patch
(1.96 KB, patch)
2013-04-15 17:38 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
patch
(1.95 KB, patch)
2013-04-15 17:42 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
patch
(1.95 KB, patch)
2013-04-15 17:42 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
patch
(1.88 KB, patch)
2013-04-15 17:45 PDT
,
Tim Horton
mitz: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2013-04-15 17:38:40 PDT
Created
attachment 198207
[details]
patch Not sure if this is a reasonable place to bail if we find PDF data, but... maybe?
WebKit Commit Bot
Comment 2
2013-04-15 17:39:54 PDT
Attachment 198207
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/loader/icon/IconLoader.cpp']" exit_code: 1 Source/WebCore/loader/icon/IconLoader.cpp:100: Omit int when using unsigned [runtime/unsigned] [1] Source/WebCore/loader/icon/IconLoader.cpp:104: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3
2013-04-15 17:42:14 PDT
Created
attachment 198208
[details]
patch
Tim Horton
Comment 4
2013-04-15 17:42:50 PDT
Created
attachment 198209
[details]
patch
Tim Horton
Comment 5
2013-04-15 17:45:26 PDT
Created
attachment 198210
[details]
patch oh boy
mitz
Comment 6
2013-04-18 20:40:28 PDT
Comment on
attachment 198210
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=198210&action=review
> Source/WebCore/loader/icon/IconLoader.cpp:100 > + static const char* pdfMagicNumber = "%PDF"; > + static unsigned pdfMagicNumberLength = strlen(pdfMagicNumber);
I would have done this with a uint32_t constant (and gotten it wrong on big endian) or a char array that I could sizeof() instead of using strlen().
Tim Horton
Comment 7
2013-04-19 12:44:59 PDT
http://trac.webkit.org/changeset/148758
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