Re: Issue 39402 in chromium: Chrome requests favicons on every request on pages that don't have a favicon

501 views
Skip to first unread message

chro...@googlecode.com

unread,
Mar 26, 2010, 1:52:33 AM3/26/10
to chromi...@chromium.org
Updates:
Summary: Chrome requests favicons on every request on pages that don't
have a favicon
Status: Untriaged
Cc: da...@chromium.org
Labels: -Area-Undefined Area-Internals Internals-Network

Comment #5 on issue 39402 by tha...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I guess that's a reasonable bug. Let's see what triage says.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 20, 2011, 1:13:00 PM2/20/11
to chromi...@chromium.org

Comment #9 on issue 39402 by TehRa...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I am seeing this bug myself, but I believe servers/scripts are handling
request improperly. View this example of a one-page request from Chrome and
Firefox.

Chrome requests the page, then the favicon. It then sends a HEAD request to
that page. My server was at default configurations, and was treating the
HEAD calls like GET or POST -- The script executed!

You can see that Firefox does not make this HEAD call below.

Scripts (or server configs) need to check for HEAD requests and deal with
them as needed. They are a standardized request.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4

Chrome Request To listings.php?featured=1
71.60.236.20 - - [20/Feb/2011:12:52:12 -0500] "GET /listings.php?featured=1
HTTP/1.1" 200 1090 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.82 Safari/534.16"
71.60.236.20 - - [20/Feb/2011:12:52:15 -0500] "GET /favicon.ico HTTP/1.1"
304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16
(KHTML, like Gecko) Chrome/10.0.648.82 Safari/534.16"
71.60.236.20 - - [20/Feb/2011:12:52:15 -0500] "HEAD
/listings.php?featured=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux
i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.82
Safari/534.16"

Firefox (and others) Request to listings.php?featured=1
71.60.236.20 - - [20/Feb/2011:12:58:34 -0500] "GET /listings.php?featured=1
HTTP/1.1" 200 1090 "-" "Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre)
Gecko/20110213 Firefox/4.0b12pre"
71.60.236.20 - - [20/Feb/2011:12:58:38 -0500] "GET /favicon.ico HTTP/1.1"
200 450 "-" "Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre) Gecko/20110213
Firefox/4.0b12pre"

chro...@googlecode.com

unread,
Mar 14, 2012, 9:53:46 AM3/14/12
to chromi...@chromium.org

Comment #15 on issue 39402 by jigar....@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I am also facing the same problem and due to this my site crashes as we
have used URL rewrite using .htaccess and any invalid request to our site
removes session. Best solution is if <link> attribute is provided in HTML
then and then chrome should send request for facicon. It should not send
request on its own. It should be as per the configuration of site owner.

chro...@googlecode.com

unread,
Apr 11, 2012, 10:20:16 AM4/11/12
to chromi...@chromium.org

Comment #17 on issue 39402 by d...@chromium.org: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Issue 122949 has been merged into this issue.

chro...@googlecode.com

unread,
Oct 22, 2012, 6:44:35 PM10/22/12
to chromi...@chromium.org

Comment #19 on issue 39402 by jle...@gmail.com: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Yes, this really needs to be looked at. In the absence of HTTP/1.1 support
on the server this generates (and subsequently tears down) an extra TCP
connection for every page view. It's a source of gross inefficiency.

chro...@googlecode.com

unread,
Oct 22, 2012, 9:22:35 PM10/22/12
to chromi...@chromium.org

Comment #20 on issue 39402 by jocelyn....@gmail.com: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

This bug actually causes a race issue here (I work for a web development
company) server-side leading to some form posts being rejected. There
probably is some better fix for us rather than ensuring we have favicons
but I think this issue should be fixed in Chrome too.

chro...@googlecode.com

unread,
Oct 22, 2012, 9:51:35 PM10/22/12
to chromi...@chromium.org

Comment #21 on issue 39402 by cben...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

For those of you who are experiencing issues, it would help to have a
net-internals log.

See http://dev.chromium.org/for-testers/providing-network-details for
details.

There maybe multiple underlying causes for the same symptom.

chro...@googlecode.com

unread,
Oct 22, 2012, 9:59:51 PM10/22/12
to chromi...@chromium.org

Comment #22 on issue 39402 by faction....@gmail.com: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

it's pretty clear. /favicon.ico is requested on every page request. stop
this.

chro...@googlecode.com

unread,
Oct 23, 2012, 10:38:56 AM10/23/12
to chromi...@chromium.org

Comment #23 on issue 39402 by jle...@gmail.com: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I've created a net internals log showing this regardless.

Attachments:
favicon-bug.json 1.3 MB

chro...@googlecode.com

unread,
Oct 23, 2012, 11:33:36 AM10/23/12
to chromi...@chromium.org
Updates:
Cc: rva...@chromium.org

Comment #24 on issue 39402 by cben...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

#23: Thanks for the net-internals log. In this case the behavior is the
same as what I observed: a 404 is returned without any caching headers.

According to HTTP specs, 404 response codes should not use freshness
heuristics on 404 responses, so we are doing things correctly at the
caching layer. Basically, we can't use the cached negative response.

That being said, we may be able to do some hacks at the icon fetching layer
to use the stale 404 response in this case.

chro...@googlecode.com

unread,
Oct 23, 2012, 11:44:57 AM10/23/12
to chromi...@chromium.org

Comment #25 on issue 39402 by cben...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Also, it doesn't look like there is a Last-Modified header in this case, so
heuristic caching also wouldn't work under the normal approach. We should
see how other browsers handle this behavior, however.

chro...@googlecode.com

unread,
Oct 23, 2012, 11:54:57 AM10/23/12
to chromi...@chromium.org

Comment #26 on issue 39402 by cben...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Just tried with a site that had similar non-cacheable 404s in Firefox
16.01. In this case the favicon.ico was not refetched during the session.
New sessions would re-retrieve it. So, there is probably some icon-specific
caching that is going on separate from HTTP cache.

chro...@googlecode.com

unread,
Oct 23, 2012, 11:57:33 AM10/23/12
to chromi...@chromium.org

Comment #27 on issue 39402 by jle...@gmail.com: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Yes, I think Chrome's behavior is correct in general, it's just this
particular case with favicon which needs special treatment. Trying this
with IE9 it does the same as Firefox and caches the 404.

chro...@googlecode.com

unread,
Oct 23, 2012, 12:34:21 PM10/23/12
to chromi...@chromium.org

Comment #28 on issue 39402 by kofreestyler: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I don't think the problem is about http caching. Why do you think that
browsers must fetch a favicon from every site?

chro...@googlecode.com

unread,
Oct 24, 2012, 8:47:26 AM10/24/12
to chromi...@chromium.org

Comment #29 on issue 39402 by dsero...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

kofreestyler, because users expect their browsers to display sites'
favicons?

chro...@googlecode.com

unread,
Oct 24, 2012, 5:58:26 PM10/24/12
to chromi...@chromium.org

Comment #30 on issue 39402 by edwinmug...@gmail.com: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I'm using Chrome Version 22 and it keeps on making 2 request to the server,
one a GET and then HEAD.

::1 - - [24/Oct/2012:23:38:24 +0300] "GET
/sapama/en/properties/myproperties/return_property_features_view HTTP/1.1"
200 25268 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like
Gecko) Chrome/22.0.1229.94 Safari/537.4"
::1 - - [24/Oct/2012:23:38:24 +0300] "HEAD
/sapama/en/properties/myproperties/return_property_features_view HTTP/1.1"
200 - "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like
Gecko) Chrome/22.0.1229.94 Safari/537.4"

How can I fix this? Do I have to test for HEAD request in my server?


chro...@googlecode.com

unread,
Feb 28, 2013, 11:20:05 AM2/28/13
to chromi...@chromium.org

Comment #31 on issue 39402 by xprom...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

i using chrom v 25.0.1364.97 m

in apache log i saw for 2 response like this

la/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko)
Chrome/25.0.1364.97 Safari/537.22"
80.89.129.114 - - [28/Feb/2013:23:13:40 +0700] "HEAD
/de/bc/germany/busket/paypal/?tttttttt=1 HTTP/1.0" 200 514 "-" "Mozilla/5.0
(Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97
Safari/537.22"

for each user query.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 28, 2013, 11:21:05 AM2/28/13
to chromi...@chromium.org

Comment #32 on issue 39402 by xprom...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

i using chrom v 25.0.1364.97 m

in apache log i saw for 2 response like this

80.89.129.114 - - [28/Feb/2013:23:12:58 +0700] "GET
/de/bc/germany/busket/paypal/?tttttttt=1 HTTP/1.0" 200
1029 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like
Gecko) Chrome/25.0.1364.97 Safari/537.22"
80.89.129.114 - - [28/Feb/2013:23:12:59 +0700] "HEAD

chro...@googlecode.com

unread,
Apr 11, 2013, 11:04:42 AM4/11/13
to chromi...@chromium.org
Updates:
Owner: m...@chromium.org

Comment #35 on issue 39402 by cben...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Changing owners from sky - this looks like a good warmup bug for mef to
tackle.

chro...@googlecode.com

unread,
May 8, 2013, 8:32:16 AM5/8/13
to chromi...@chromium.org

Comment #37 on issue 39402 by barrystaes: Chrome requests favicons on every
request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I think correct Chrome behavior would be to only request a favicon file if
referred in HTML:

<link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />

Also note that replicating this issue does not require Apache at all.
Simply put, anything answering port 80 gets these unsolicited favicon
requests, e.g. my teapot.

chro...@googlecode.com

unread,
May 8, 2013, 8:54:16 AM5/8/13
to chromi...@chromium.org

Comment #38 on issue 39402 by barrystaes: Chrome requests favicons on every
request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Another issue i have with this, is that the F12 inspector does not show
this hidden activity on the Network tab. Returning error 404 or 418 makes
no difference whatsoever.

chro...@googlecode.com

unread,
May 8, 2013, 9:13:44 AM5/8/13
to chromi...@chromium.org

Comment #39 on issue 39402 by xprom...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

> #37 barrystaes
> I think correct Chrome behavior would be to only request a favicon file
> if referred in HTML:

> <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />

we can not add it fo ajax reques

chro...@googlecode.com

unread,
May 8, 2013, 9:35:44 AM5/8/13
to chromi...@chromium.org

Comment #40 on issue 39402 by faction.gregory: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I haven't looked too deeply into how chrome parses the DOM when rendering,
it wouldn't add to extra parsing overhead to recognize the shortcut would
it?

chro...@googlecode.com

unread,
May 8, 2013, 9:40:44 AM5/8/13
to chromi...@chromium.org

Comment #41 on issue 39402 by barrystaes: Chrome requests favicons on every
request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Another issue i have with this, is that each new favicon.ico request is a
new (why?) session. And because each session stays open at the server for
some extended period of time, this is a huge waste of resources. Each user
click, each request.

chro...@googlecode.com

unread,
May 13, 2013, 9:10:02 AM5/13/13
to chromi...@chromium.org

Comment #43 on issue 39402 by barrystaes: Chrome requests favicons on every
request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Note that this W3C QA page mentions that "Putting the favicon at a
predefined URI" is discouraged, and the HTML link tag is also suggested
here.
http://www.w3.org/2005/10/howto-favicon
I personally agree with the above.

Which is why i would like to learn whether the above issue resolution is a
temporary measure or considered a permanent fix, and -even more so- if the
latter i'd like to hear the motivation to load the fixed url, seemingly
regardless of HTML link tag.
I'd like to understand.

chro...@googlecode.com

unread,
May 13, 2013, 9:24:15 AM5/13/13
to chromi...@chromium.org

Comment #44 on issue 39402 by barrystaes: Chrome requests favicons on every
request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Sorry for spamming this issue..
For reference, other browsers only load `/favicon.ico` optionally, and by
default thats disabled. (source
http://en.wikipedia.org/w/index.php?title=Favicon&oldid=554726736#How_to_use
)

^ Firefox only accepts favicon.ico in the web site's root without a <link>
tag if the setting browser.chrome.favicons is set to true in about:config.
The default value is true. If set to false, these favicons are ignored.
^ Opera loads /favicon.ico only if Multimedia/Always load favicon option in
opera:config is set to 1. See Opera Support page for more details.

I'd like to see Chrome behave like (pre-chromium) Opera here.

chro...@googlecode.com

unread,
May 13, 2013, 12:05:52 PM5/13/13
to chromi...@chromium.org

Comment #45 on issue 39402 by m...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Chrome's behavior in regards to predefined "favicon.ico" vs <link
rel="icon"> is not the subject of this issue. Chrome DOES recognize <link
rel="icon"> and DOES NOT request predefined favicon.ico in such case.

This particular issue is about Chrome's relentless requests for favicon if
server doesn't have it.

chro...@googlecode.com

unread,
May 15, 2013, 5:23:38 AM5/15/13
to chromi...@chromium.org

Comment #46 on issue 39402 by bugdro...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402#c46

------------------------------------------------------------------------
r200194 | m...@chromium.org | 2013-05-15T08:37:48.461996Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/favicon/favicon_handler_unittest.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/public/browser/web_contents.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/web_applications/web_app_ui.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/extensions/shell_window.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/renderer/fetchers/multi_resolution_image_resource_fetcher.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/metro_pin_tab_helper_win.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/extensions/shell_window.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/common/image_messages.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/metro_pin_tab_helper_win.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/android_webview/browser/icon_helper.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/android_webview/browser/icon_helper.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/favicon/favicon_service.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/favicon/favicon_service.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/notifications/message_center_notification_manager.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/renderer/image_loading_helper.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/favicon/favicon_tab_helper.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/notifications/message_center_notification_manager.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/favicon/favicon_tab_helper.h?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/web_contents/web_contents_impl.cc?r1=200194&r2=200193&pathrev=200194
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/web_contents/web_contents_impl.h?r1=200194&r2=200193&pathrev=200194

Don't request missing favicon on every page request.
Mark Favicon as 'Unable to Download' if server returns HTTP status 404 and
don't try to download it again until user closes the browser or
clicks 'Shift-Reload'
(RELOAD_IGNORING_CACHE).

Firefox 20 and IE 10 don't request missing favicon.ico on every page
request.

Propagated HTTP Status Code from MultiResolutionImageResourceFetcher all
the way up to FaviconTabHelper, which required extension of 3 interfaces.

BUG=39402
TEST=FaviconHandlerTest.UnableToDownloadFavicon

Reviewers:
s...@chromium.org - Overall CL, chrome/browser/*, content/browser/*
pal...@chromium.org - content/common/image_messages.h
j...@chromium.org - content/public/browser/web_contents.h
jam...@chromium.org - content/renderer/*, webkit/glue/*
mnag...@chromium.org - android_webview/browser/icon_helper.*

Review URL: https://chromiumcodereview.appspot.com/14322023
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 15, 2013, 11:20:56 AM5/15/13
to chromi...@chromium.org
Updates:
Status: Fixed

Comment #47 on issue 39402 by m...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Jul 20, 2013, 1:21:47 PM7/20/13
to chromi...@chromium.org

Comment #48 on issue 39402 by san...@gmail.com: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

I am still facing the issue? What has been fixed and how? Please please
explain.

I am using 28.0.1500.72 m version of Chrome.

I have tried almost all the ways to set a fav-icon but nothing works for me.

chro...@googlecode.com

unread,
Jul 22, 2013, 11:23:23 AM7/22/13
to chromi...@chromium.org
Updates:
Labels: M-29

Comment #49 on issue 39402 by m...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

It has been fixed in version 29.

chro...@googlecode.com

unread,
Apr 2, 2014, 12:11:59 PM4/2/14
to chromi...@chromium.org

Comment #51 on issue 39402 by o...@ojab.ru: Chrome requests favicons on
every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

Version 33.0.1750.152, still happens.

chro...@googlecode.com

unread,
Apr 2, 2014, 1:49:05 PM4/2/14
to chromi...@chromium.org

Comment #52 on issue 39402 by sp1d...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402

looks like line 189 of favicon_tab_helper is to blame here... it only takes
into account 404.

chro...@googlecode.com

unread,
Apr 30, 2014, 8:55:06 AM4/30/14
to chromi...@chromium.org
Updates:
Labels: merge-merged-git-svn

Comment #53 on issue 39402 by bugdro...@chromium.org: Chrome requests
favicons on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402#c53

The following revision refers to this bug:

https://chromium.googlesource.com/chromium/src.git/+/971b2e973f45bb207dcdb13fcd0b4e0020b89521

commit 971b2e973f45bb207dcdb13fcd0b4e0020b89521
Author: cima...@chromium.org
<cima...@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed Apr 30 12:10:58 2014 +0000

Do not attempt to download favicons with 404 status in WebView

This issue was fixed for Chromium (crbug.com/39402). This patch gets the
relevant parts of the fixing patch for Android WebView.

BUG=39402

Review URL: https://codereview.chromium.org/255503004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267192
0039d316-1c4b-4281-b951-d872f2087c98

chro...@googlecode.com

unread,
Apr 30, 2014, 9:00:06 AM4/30/14
to chromi...@chromium.org

chro...@googlecode.com

unread,
Dec 13, 2014, 4:40:55 PM12/13/14
to chromi...@chromium.org

Comment #57 on issue 39402 by ma...@mazurok.com: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

Server side: Node.js
Client side: Chrome 39.0.2171.95 m
Every time I try to load the page, server gets 3 requests. First with
url="/", and then two requests with url="/favicon.ico".

Same server, but on client side running clean portable build of Chromium
Version 39.0.2150.5 (7d466dc36d619ad23f32fabff9fc9bab25fbab58) (64-bit).
Server gets two requests per every page load. First with url="/", and then
two requests with url="/favicon.ico". Same issue with clean portable Chrome
Version 39.0.2171.95.

BUG IS NOT FIXED.
And must be reopened. Thanks.

chro...@googlecode.com

unread,
Dec 13, 2014, 5:00:11 PM12/13/14
to chromi...@chromium.org

Comment #58 on issue 39402 by mme...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

I can't repro on M39 stable - see a single favicon request the first time I
navigate to a page, which gets a 404 response, and then no others until
restart. You are returning a 404 error, right?

Could you upload a net-internals log of this happening?
https://sites.google.com/a/chromium.org/dev/for-testers/providing-network-details

chro...@googlecode.com

unread,
Dec 13, 2014, 5:21:45 PM12/13/14
to chromi...@chromium.org

Comment #59 on issue 39402 by ma...@mazurok.com: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

No, I don't, seems like my fault.. But FireFox and IE sends only ONE
request after trying to load favicon.
FF sending about three requests for favicon in first load.
IE trying to load favicon several times when I reload the page, and "give
up" after that.

First attachment is the simplest server on node.js.
You can see increasing number of requests here: http://54.69.95.79:8080/.
Second attachment is logs from portable Chrome Version 39.0.2171.95. Hope
it will help.

Attachments:
testServer.js 357 bytes
net-internals-log.json 2.0 MB

chro...@googlecode.com

unread,
Dec 15, 2014, 11:01:41 AM12/15/14
to chromi...@chromium.org

Comment #60 on issue 39402 by mme...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

I only see one favicon request there, not the two you indicated. And the
server is returning a 200 response, which is rather weird, and violates the
HTTP spec.

That having been said, we probably shouldn't be re-requesting the favicon
in that case, either because of the mime type (If we check that for
favicons) or because we receive the entire response sucessfully and it's
not an icon. There's no real standard here to key behavior off of,
unfortunately.

chro...@googlecode.com

unread,
Mar 14, 2015, 5:11:10 PM3/14/15
to chromi...@chromium.org

Comment #61 on issue 39402 by kenmo...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

I'm also encountering this same 100% reproducible issue using a simple
node.js web server.

Chrome version 41.0.2272.89 (64-bit)

chro...@googlecode.com

unread,
Mar 14, 2015, 6:38:47 PM3/14/15
to chromi...@chromium.org

Comment #62 on issue 39402 by ma...@mazurok.com: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

kenmo...@gmail.com, it is because you shuold return 404 error if you have
no favicon. else chrome will try to get it again and again. but if you will
return 404 error - chrome will remember this.

chro...@googlecode.com

unread,
Apr 21, 2015, 5:04:18 AM4/21/15
to chromi...@chromium.org

Comment #63 on issue 39402 by rafal.cz...@gmail.com: Chrome requests
favicons on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

My setup:

- web server (OpenBSD's HTTPd)
- serving single file: index.html which content is:

<html>
<body>
<h1>Test</h1>
</body>
</html>

I do *not* provide a link to the 'favicon.ico', nor do I *ever* intend to -
it is neither a requirement, nor is it in any working draft.

This is clearly a bug in Chrome, when accessing a page, it
automatically "assumes" the existence of 'favicon.ico' and tries to get it.

Please, only use the HTML code for any files - do *not* try to pre-load
anything that's not defined!

This is plain wrong and really annoying to see 404 in your server logs
generated automatically by a web browser! Stick to the W3C standards.

Please, *STOP*!

Thank you.

chro...@googlecode.com

unread,
Apr 21, 2015, 5:07:17 AM4/21/15
to chromi...@chromium.org

Comment #64 on issue 39402 by rafal.cz...@gmail.com: Chrome requests
favicons on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

BTW, this happens on an up-to-date Chromebook.

chro...@googlecode.com

unread,
Aug 11, 2015, 12:17:10 PM8/11/15
to chromi...@chromium.org

Comment #65 on issue 39402 by ericf...@gmail.com: Chrome requests favicons
on every request on pages that don't have a favicon
https://code.google.com/p/chromium/issues/detail?id=39402

Version 44.0.2403.130 m
Windows 7

I find with Charles Proxy that every 3rd party domain, that is, app, pixel
tracker, analytics tag etc, also gets a request to /favicon.ico
Reply all
Reply to author
Forward
0 new messages