Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Issue 1079523005: Fix FaviconHandler when it has multiple icon URLs and one of them is invalid (Closed)

Created:
5 years, 8 months ago by pkotwicz
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@fix_favicon3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix FaviconHandler when it has multiple icon URLs and one of them is invalid This CL prevents FaviconHandler from stopping iteration over a page's icon URLs if a download for one of the icon URLs previously returned a 404. In particular, this CL makes FaviconHandler::ScheduleDownload() call the download callback when FaviconDriver::StartDownload() does not start a download. This is important because the download callback is responsible for initiating the fetch for the data for the next favicon candidate. Sample scenario: Page HTML snippet: <link rel="icon" href="www.google.com/nothingtoseehere.png" /> <link rel="icon" href="www.google.com/favicon.ico" /> A previous download for "www.google.com/nothingtoseehere.png" returned a 404 (e.g. the user previously visited a different page which also makes use of www.google.com/nothingtoseehere.png) This CL makes FaviconHandler fetch data for "www.google.com/favicon.ico" despite the download for the first favicon candidate ("www.google.com/nothingtoseehere.png") having previously failed. BUG=474429 TEST=FaviconHandlerTest.MultipleFavicons404, FaviconHandlerTest.MultipleFaviconsAll404 Committed: https://crrev.com/8c6d0c6cc37a13f830d3422930a5f2f96674f046 Cr-Commit-Position: refs/heads/master@{#327339}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -28 lines) Patch
M components/favicon/core/favicon_handler.cc View 1 2 2 chunks +21 lines, -12 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 17 chunks +173 lines, -16 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
pkotwicz
rogerm@ PTAL
5 years, 8 months ago (2015-04-26 21:32:06 UTC) #2
Roger McFarlane (Chromium)
https://codereview.chromium.org/1079523005/diff/1/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1079523005/diff/1/components/favicon/core/favicon_handler.cc#newcode442 components/favicon/core/favicon_handler.cc:442: } else { nit: Maybe return after ProcessCurrentUrl() ...
5 years, 8 months ago (2015-04-27 14:25:48 UTC) #3
pkotwicz
rogerm@ can you please take another look? https://codereview.chromium.org/1079523005/diff/1/components/favicon/core/favicon_handler.cc File components/favicon/core/favicon_handler.cc (right): https://codereview.chromium.org/1079523005/diff/1/components/favicon/core/favicon_handler.cc#newcode691 components/favicon/core/favicon_handler.cc:691: if (download_id ...
5 years, 8 months ago (2015-04-27 18:50:55 UTC) #5
Roger McFarlane (Chromium)
lgtm
5 years, 8 months ago (2015-04-27 18:53:21 UTC) #6
pkotwicz
Scott, can you please take a look?
5 years, 8 months ago (2015-04-27 19:47:40 UTC) #8
sky
LGTM
5 years, 8 months ago (2015-04-27 21:08:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1079523005/60001
5 years, 7 months ago (2015-04-28 17:12:55 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 7 months ago (2015-04-28 18:50:24 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 18:52:11 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8c6d0c6cc37a13f830d3422930a5f2f96674f046
Cr-Commit-Position: refs/heads/master@{#327339}

Powered by Google App Engine
This is Rietveld 408576698