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

Issue 10831163: Update favicon URLs on FinishLoad for main frame (Closed)

Created:
8 years, 4 months ago by aruslan
Modified:
8 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, darin (slow to review)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Update favicon URLs on FinishLoad for main frame Previously it was done on didStopLoading for _any_ frame. That causes a stream of spurious favicon URL updates for every <iframe>. This is now moved to on didFinishLoad and get triggered only for the main frame. This ensures that icon loads always get initiated after all of the other page resources have been fetched. Note that DidFinishDocumentLoad runs potentially before all subresources have been fetched, which means that the icon requests may compete with subresources for network bandwidth. didFinishLoad is the closest place to where IconController does it, and we already have icons at this point. BUG=131567 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150232

Patch Set 1 #

Patch Set 2 : Comments and description changes. #

Total comments: 2

Patch Set 3 : Moved the function to match the order in the header file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -20 lines) Patch
M chrome/renderer/chrome_render_view_observer.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 chunks +26 lines, -20 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
aruslan
Please help with the review. I'm moving OnUpdateFaviconURL call from DidStopLoading() to DidFinishLoad(). Currently we ...
8 years, 4 months ago (2012-08-03 22:26:30 UTC) #1
jam
deferring to Nate/Nico
8 years, 4 months ago (2012-08-06 18:31:15 UTC) #2
Nico
As mentioned over email, this change makes sense to me, but I'm not intimately familiar ...
8 years, 4 months ago (2012-08-06 18:38:38 UTC) #3
aruslan
As discussed with Darin, DidFinishLoad is the closest place to update favicon URLs and trigger ...
8 years, 4 months ago (2012-08-06 20:40:26 UTC) #4
Nico
Sounds reasonable, lgtm. Darin, shout if you disagree, but it sounded like you're cool with ...
8 years, 4 months ago (2012-08-06 20:42:36 UTC) #5
darin (slow to review)
https://chromiumcodereview.appspot.com/10831163/diff/9001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): https://chromiumcodereview.appspot.com/10831163/diff/9001/chrome/renderer/chrome_render_view_observer.cc#newcode701 chrome/renderer/chrome_render_view_observer.cc:701: void ChromeRenderViewObserver::CollectAndUpdateFaviconURLs( please list functions in the .cpp file ...
8 years, 4 months ago (2012-08-06 20:46:32 UTC) #6
aruslan
https://chromiumcodereview.appspot.com/10831163/diff/9001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): https://chromiumcodereview.appspot.com/10831163/diff/9001/chrome/renderer/chrome_render_view_observer.cc#newcode701 chrome/renderer/chrome_render_view_observer.cc:701: void ChromeRenderViewObserver::CollectAndUpdateFaviconURLs( On 2012/08/06 20:46:32, darin wrote: > please ...
8 years, 4 months ago (2012-08-06 20:52:27 UTC) #7
aruslan
Thanks for the review and discussion! I'm committing the change to CQ.
8 years, 4 months ago (2012-08-06 21:58:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10831163/3002
8 years, 4 months ago (2012-08-06 22:17:29 UTC) #9
darin (slow to review)
LGTM
8 years, 4 months ago (2012-08-06 22:40:10 UTC) #10
commit-bot: I haz the power
Try job failure for 10831163-3002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 22:55:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10831163/3002
8 years, 4 months ago (2012-08-07 00:01:36 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 02:11:59 UTC) #13
Change committed as 150232

Powered by Google App Engine
This is Rietveld 408576698