WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
68861
Support for multiple <link rel="icon"> favicon elements - LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=68861
Summary
Support for multiple <link rel="icon"> favicon elements - LayoutTests
Rachel Blum
Reported
2011-09-26 18:25:23 PDT
While the original issue has been fixed in #65564, that patch had no LayoutTest attached. This will be remedied here.
Attachments
Patch
(7.77 KB, patch)
2011-09-26 19:09 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(7.76 KB, patch)
2011-09-27 11:30 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(7.85 KB, patch)
2011-09-27 13:44 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(9.02 KB, patch)
2011-09-27 16:49 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(10.36 KB, patch)
2011-09-28 13:48 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(13.02 KB, patch)
2011-10-03 17:23 PDT
,
Rachel Blum
no flags
Details
Formatted Diff
Diff
Patch
(13.31 KB, patch)
2011-12-02 15:42 PST
,
Rachel Blum
aroben
: review-
gustavo.noronha
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Rachel Blum
Comment 1
2011-09-26 19:09:01 PDT
Created
attachment 108778
[details]
Patch
Rachel Blum
Comment 2
2011-09-26 19:10:00 PDT
First patch uploaded simply to get an error message telling me what the mangled name for the .def file should be. Not ready to commit
Adam Roben (:aroben)
Comment 3
2011-09-27 05:47:26 PDT
Comment on
attachment 108778
[details]
Patch Yay tests!
Rachel Blum
Comment 4
2011-09-27 11:30:43 PDT
Created
attachment 108874
[details]
Patch
Gustavo Noronha (kov)
Comment 5
2011-09-27 11:40:07 PDT
Comment on
attachment 108874
[details]
Patch
Attachment 108874
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/9877425
Rachel Blum
Comment 6
2011-09-27 13:44:46 PDT
Created
attachment 108890
[details]
Patch
Collabora GTK+ EWS bot
Comment 7
2011-09-27 15:15:14 PDT
Comment on
attachment 108890
[details]
Patch
Attachment 108890
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/9878452
Rachel Blum
Comment 8
2011-09-27 16:49:48 PDT
Created
attachment 108933
[details]
Patch
Collabora GTK+ EWS bot
Comment 9
2011-09-27 18:21:08 PDT
Comment on
attachment 108933
[details]
Patch
Attachment 108933
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/9878499
Rachel Blum
Comment 10
2011-09-28 13:48:47 PDT
Created
attachment 109068
[details]
Patch
Rachel Blum
Comment 11
2011-09-29 11:31:51 PDT
All export definitions fixed.... Ready for review
Adam Roben (:aroben)
Comment 12
2011-10-03 06:38:41 PDT
Comment on
attachment 109068
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=109068&action=review
It is awesome to have a test for this! It might be worth adding tests that have zero and one icons specified. A few small comments below.
> Source/WebCore/testing/Internals.cpp:400 > + for (Vector<IconURL>::const_iterator i(iconURLs.begin()); i != iconURLs.end(); ++i) {
We usually use indices to iterate over Vectors rather than iterators.
> Source/WebCore/testing/Internals.cpp:406 > + if (!result.isEmpty()) > + result += ", "; > + result += "{ "; > + result += i->m_iconURL.string() + ", "; > + result += i->m_mimeType + ", "; > + result += i->m_sizes + " }";
I think our convention is to omit the "m_" prefix for public data members. (I might be wrong, though; you should check for examples in our source tree.) All the += in here is pretty inefficient. I'm not sure what the recommended pattern is these days (StringBuilder?).
Darin Adler
Comment 13
2011-10-03 07:42:01 PDT
Comment on
attachment 109068
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=109068&action=review
> Source/WebCore/testing/Internals.cpp:393 > + String result;
Yes, as Adam says, this should be a StringBuilder. String's += operation is extremely inefficient and even for test code would be better to not use it.
Rachel Blum
Comment 14
2011-10-03 17:23:47 PDT
Created
attachment 109557
[details]
Patch
Rachel Blum
Comment 15
2011-10-03 17:26:50 PDT
* iterator => indices fixed * left m_ convention intact. Several spotchecks in dom directory (KeyboardEvent.h, MediaStream.h) also have an m_ * Added tests for zero/none * Switched to StringBuilder This _might_ need a further revision if any StringBuilder symbols need to be exported to be used in Internals.cpp
Gustavo Noronha (kov)
Comment 16
2011-10-03 22:31:35 PDT
Comment on
attachment 109557
[details]
Patch
Attachment 109557
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/9938299
Darin Adler
Comment 17
2011-10-04 07:39:33 PDT
Comment on
attachment 109557
[details]
Patch GTK build still failing, not sure why
Rachel Blum
Comment 18
2011-10-05 13:59:39 PDT
GTK build breakage happened before - it seems to occasionally not pick up the export list. See e.g. the 4th & 5th patch. Same export list for GTK, 4 works, 5 fails. Looping in mrobinson, hoping he can solve that riddle.
Martin Robinson
Comment 19
2011-10-05 14:13:08 PDT
(In reply to
comment #18
)
> GTK build breakage happened before - it seems to occasionally not pick up the export list. See e.g. the 4th & 5th patch. Same export list for GTK, 4 works, 5 fails. Looping in mrobinson, hoping he can solve that riddle.
I don't think it should block this patch from landing. If it turns out that the GTK+ build breaks, we'll just force a clean rebuild. I'm not sure what the issue is that's causing the flakiness. :(
Rachel Blum
Comment 20
2011-10-12 18:53:41 PDT
So could somebody land this patch, please?
WebKit Review Bot
Comment 21
2011-12-02 06:50:28 PST
Comment on
attachment 109557
[details]
Patch Rejecting
attachment 109557
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: t2.def Hunk #2 succeeded at 149 with fuzz 2 (offset 2 lines). patching file Source/WebKit2/win/WebKit2CFLite.def Hunk #1 succeeded at 141 with fuzz 2 (offset 3 lines). Hunk #2 FAILED at 148. 1 out of 2 hunks FAILED -- saving rejects to file Source/WebKit2/win/WebKit2CFLite.def.rej patching file Source/autotools/symbols.filter Hunk #1 succeeded at 75 (offset 4 lines). Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'Adam Roben', u'--force']" exit_code: 1 Full output:
http://queues.webkit.org/results/10695374
Rachel Blum
Comment 22
2011-12-02 15:42:03 PST
Created
attachment 117706
[details]
Patch
Collabora GTK+ EWS bot
Comment 23
2011-12-02 22:22:53 PST
Comment on
attachment 117706
[details]
Patch
Attachment 117706
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/10701457
Adam Roben (:aroben)
Comment 24
2011-12-05 05:56:37 PST
Comment on
attachment 117706
[details]
Patch Looks like this doesn't build on GTK.
fbeaufort
Comment 25
2021-03-03 05:14:14 PST
It would be great to support multiple link[rel=icon] as specified in the HTML spec[1]. Without it, it is impossible for web developers to use media features[2] for multiple equally appropriate icons. It seems like it's something web developers want according to
https://twitter.com/tomayac/status/1367075186428833793
[1]
https://html.spec.whatwg.org/#rel-icon
[2]
https://html.spec.whatwg.org/multipage/semantics.html#processing-the-media-attribute
Ahmad Saleem
Comment 26
2022-08-09 08:44:08 PDT
There are test coverage available for these:
https://wpt.fyi/results/html/links/icon?label=master&label=experimental&aligned&view=subtest&q=icon
Do we need to add these tests from the patch? Thanks! NOTE - One test was removed in this commit due to non-standard behavior:
https://github.com/WebKit/WebKit/commit/a48cc016912799c3dd65e94737947c2a519dbc53
Appreciate if someone can if anything further is required and mark / tag this bug accordingly. Thanks!
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