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

Issue 1211993005: favicon: Replace usage of GetActiveEntry by GetLastCommittedEntry. (Closed)

Created:
5 years, 5 months ago by tfarina
Modified:
5 years, 4 months ago
Reviewers:
sky, nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

favicon: Replace usage of GetActiveEntry by GetLastCommittedEntry. According to the bug crbug.com/273710 it can lead to security issues. BUG=273710 TEST=components_unittests R=nasko@chromium.org,sky@chromium.org Committed: https://crrev.com/a04f01752ea1d092e823354f58d8926a346119ea Cr-Commit-Position: refs/heads/master@{#337054}

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M components/favicon/content/content_favicon_driver.cc View 2 chunks +4 lines, -4 lines 5 comments Download

Messages

Total messages: 11 (2 generated)
tfarina
PTAL! https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/content_favicon_driver.cc File components/favicon/content/content_favicon_driver.cc (right): https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/content_favicon_driver.cc#newcode85 components/favicon/content/content_favicon_driver.cc:85: GURL ContentFaviconDriver::GetActiveURL() { Nasko, I guess you want ...
5 years, 5 months ago (2015-06-30 21:22:56 UTC) #1
nasko
https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/content_favicon_driver.cc File components/favicon/content/content_favicon_driver.cc (right): https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/content_favicon_driver.cc#newcode85 components/favicon/content/content_favicon_driver.cc:85: GURL ContentFaviconDriver::GetActiveURL() { On 2015/06/30 21:22:55, tfarina wrote: > ...
5 years, 5 months ago (2015-07-01 05:56:30 UTC) #2
nasko
Ah, forgot to add LGTM :)
5 years, 5 months ago (2015-07-01 05:56:47 UTC) #3
tfarina
Thanks nasko. +sky for OWNERS approval.
5 years, 5 months ago (2015-07-01 14:41:14 UTC) #5
sky
LGTM
5 years, 5 months ago (2015-07-01 16:41:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211993005/1
5 years, 5 months ago (2015-07-01 17:03:48 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 5 months ago (2015-07-01 17:30:10 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a04f01752ea1d092e823354f58d8926a346119ea Cr-Commit-Position: refs/heads/master@{#337054}
5 years, 5 months ago (2015-07-01 17:31:09 UTC) #10
sdefresne
5 years, 4 months ago (2015-08-13 09:12:26 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/...
File components/favicon/content/content_favicon_driver.cc (right):

https://codereview.chromium.org/1211993005/diff/1/components/favicon/content/...
components/favicon/content/content_favicon_driver.cc:87:
web_contents()->GetController().GetLastCommittedEntry();
On 2015/07/01 at 05:56:30, nasko (very slow) wrote:
> Let's watch for failures/bugs from this CL once it lands. It is possible that
favicon and title are expected to be updated on back/forward navigation prior to
the commit of it. If that is the case, we will have to use GetVisibleEntry.

drive-by: on iOS we are using GetVisibleItem() everywhere (the iOS equivalent of
GetVisibleEntry). IIRC, when implementing WebFaviconDriver I dug into the
favicon code to know why GetActiveEntry was used and it is just because the code
pre-dated GetVisibleEntry/GetLastCommittedEntry. After testing we decided to use
GetVisibleItem().

Powered by Google App Engine
This is Rietveld 408576698