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

Issue 2694333002: Fix leaking page visits in incognito mode via bookmarked favicons (Closed)

Created:
3 years, 10 months ago by mastiz
Modified:
3 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, pkl (ping after 24h if needed), Eugene But (OOO till 7-30), droger+watchlist_chromium.org, browser-components-watch_chromium.org, sdefresne+watchlist_chromium.org, jam, darin-cc_chromium.org, blundell+watchlist_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, sdefresne+watch_chromium.org, pkotwicz
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix leaking page visits in incognito mode via bookmarked favicons When a page is visited, the favicons are cached into HistoryService. In incognito, this is the case only if the page is bookmarked, a special-casing introduced long ago in http://codereview.chromium.org/5753007. The exception doesn't seem necessary because bookmark creation explicitly saves the favicon (calls SetFavicon), although currently broken on mobile (crbug.com/761764). This exception seems to go against the general promise behind incognito mode and can be exploited by users that share devices with other users. E.g. if one user wants to know if another user visits a certain page, it's sufficient to bookmark it and clear the local cache. BUG=708447 Review-Url: https://chromiumcodereview.appspot.com/2694333002 Cr-Commit-Position: refs/heads/master@{#500976} Committed: https://chromium.googlesource.com/chromium/src/+/62a06efac826e30ae2683b64a6eccf628899de4c

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Rename function. #

Patch Set 4 : Updated tests. #

Patch Set 5 : Fix build. #

Patch Set 6 : Update tests. #

Patch Set 7 : Fixed build. #

Patch Set 8 : Rebased. #

Patch Set 9 : Rebased. #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -96 lines) Patch
M chrome/browser/favicon/favicon_utils.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M components/favicon/content/content_favicon_driver.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -5 lines 0 comments Download
M components/favicon/content/content_favicon_driver.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -10 lines 0 comments Download
M components/favicon/content/content_favicon_driver_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M components/favicon/core/DEPS View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M components/favicon/core/favicon_driver_impl.h View 1 2 3 4 5 6 7 8 3 chunks +1 line, -10 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -10 lines 0 comments Download
M components/favicon/core/favicon_handler.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -5 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -10 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -15 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.mm View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -8 lines 0 comments Download
M ios/chrome/browser/reading_list/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service_factory.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M ios/chrome/browser/tabs/tab_helper_util.mm View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 62 (41 generated)
mastiz
Hey peter, I haven't tested this locally, but before bugging sky@, do you have an ...
3 years, 8 months ago (2017-03-31 14:54:36 UTC) #6
pkotwicz
The current code updates bookmark favicons when a user visits the bookmarked page in incognito ...
3 years, 8 months ago (2017-03-31 15:49:03 UTC) #9
mastiz
On 2017/03/31 15:49:03, pkotwicz wrote: > The current code updates bookmark favicons when a user ...
3 years, 8 months ago (2017-04-04 12:17:54 UTC) #10
pkotwicz
Scott, can you please take a look Punting this CL to Scott who is the ...
3 years, 8 months ago (2017-04-04 13:06:33 UTC) #12
sky
Please add test coverage.
3 years, 8 months ago (2017-04-04 16:59:11 UTC) #13
mastiz
On 2017/04/04 16:59:11, sky wrote: > Please add test coverage. Will do. Meanwhile, do you ...
3 years, 8 months ago (2017-04-04 18:16:40 UTC) #14
sky
I intended both. My thinking was that if you've bookmarked a page than it's important ...
3 years, 8 months ago (2017-04-04 20:41:55 UTC) #15
mastiz
Thanks Scott. On 2017/04/04 20:41:55, sky wrote: > I intended both. My thinking was that ...
3 years, 8 months ago (2017-04-05 07:44:33 UTC) #16
mastiz
sky@: sorry for the long silence but I'd like to ping this thread and wrap ...
3 years, 3 months ago (2017-09-04 17:22:16 UTC) #38
sky
battre has the final say. -Scott On Mon, Sep 4, 2017 at 10:22 AM, <mastiz@chromium.org> ...
3 years, 3 months ago (2017-09-05 16:53:43 UTC) #43
mastiz
On 2017/09/05 16:53:43, sky wrote: > battre has the final say. Thanks, then please proceed ...
3 years, 3 months ago (2017-09-05 17:05:16 UTC) #44
sky
It would be good if you could verify SetFavicons() is not called when incognito. Otherwise ...
3 years, 3 months ago (2017-09-05 17:50:57 UTC) #45
sky
On 2017/09/05 17:50:57, sky wrote: > It would be good if you could verify SetFavicons() ...
3 years, 3 months ago (2017-09-05 17:51:16 UTC) #46
mastiz
On 2017/09/05 17:50:57, sky wrote: > It would be good if you could verify SetFavicons() ...
3 years, 3 months ago (2017-09-06 08:50:15 UTC) #47
sky
LGTM
3 years, 3 months ago (2017-09-06 17:24:42 UTC) #48
mastiz
pkotwicz@: I'll go ahead and land this patch after a grace period of a few ...
3 years, 3 months ago (2017-09-07 10:05:03 UTC) #50
mastiz
On 2017/09/07 10:05:03, mastiz wrote: > pkotwicz@: I'll go ahead and land this patch after ...
3 years, 3 months ago (2017-09-11 09:27:11 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694333002/160001
3 years, 3 months ago (2017-09-11 09:27:54 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/296184) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 3 months ago (2017-09-11 09:30:21 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694333002/180001
3 years, 3 months ago (2017-09-11 15:42:22 UTC) #59
commit-bot: I haz the power
3 years, 3 months ago (2017-09-11 18:14:34 UTC) #62
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/62a06efac826e30ae2683b64a6ec...

Powered by Google App Engine
This is Rietveld 408576698