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

Issue 2918903002: Move IconURLs method from WebFrame to WebLocalFrame (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, jam, dcheng, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, platform-architecture-syd+reviews-web_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make UpdateFaviconURL IPC target a frame, rather than a view. This CL has 3 main parts: - Removing no-op implementation of IconURLs method from WebRemoteFrameImpl and moving declaration of this virtual method from WebFrame to WebLocalFrame. This change is contained within third_party/WebKit and addresses https://crbug.com/416660. - Moving handling of icon updates from RenderView to RenderFrame (this includes moving the IPC from view_messages.h to frame_messages.h). This change is in the //content layer and addresses the left-over methods and the comment from r263486 related to https://crbug.com/361761. - Refactoring of content::FaviconURL::IconType to highlight the fact that the enum values should NOT be used as bit masks. BUG=361761, 416660 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation TBR=michaelbai@chromium.org, rockot@chromium.org Review-Url: https://codereview.chromium.org/2918903002 Cr-Commit-Position: refs/heads/master@{#477803} Committed: https://chromium.googlesource.com/chromium/src/+/178ff09570a50662f01850fb0cdbea76de51bd98

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebasing... #

Patch Set 3 : Moving IPC from "view" to "frame" based. #

Patch Set 4 : Rebasing... #

Patch Set 5 : Fix UpdateFaviconURLWhilePendingSwapOut unit test. #

Patch Set 6 : Simplify unit test changes to avoid UaF from previous patchset. #

Total comments: 6

Patch Set 7 : Making FaviconURL::IconType an enum *class* with *consecutive* values. #

Patch Set 8 : Earlier early return in RenderFrameImpl::SendUpdateFaviconURL. #

Patch Set 9 : Fixing build problem in chrome/browser/extensions/favicon_downloader.cc #

Patch Set 10 : Fix compile problem in android_webview/browser/icon_helper.cc #

Patch Set 11 : Fixing compile problems in chrome/browser/extensions/favicon_downloader_unittest.cc #

Total comments: 6

Patch Set 12 : Addressed CR feedback from avi@ #

Total comments: 2

Patch Set 13 : Rebasing... #

Patch Set 14 : s/kFavIcon/kFavicon/g (as suggested in CR feedback from pkotwicz@). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -181 lines) Patch
M android_webview/browser/icon_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/favicon_downloader.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/favicon_downloader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -11 lines 0 comments Download
M components/favicon/content/content_favicon_driver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +16 lines, -13 lines 0 comments Download
M components/favicon/content/favicon_url_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 9 chunks +20 lines, -25 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -3 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 4 chunks +13 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +0 lines, -12 lines 0 comments Download
M content/public/common/favicon_url.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -5 lines 0 comments Download
M content/public/common/favicon_url.cc View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +54 lines, -2 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 5 chunks +0 lines, -12 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +0 lines, -71 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (56 generated)
Łukasz Anforowicz
dcheng@, can you PTAL?
3 years, 6 months ago (2017-06-02 16:01:35 UTC) #6
dcheng
https://codereview.chromium.org/2918903002/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2918903002/diff/1/content/renderer/render_view_impl.cc#newcode2611 content/renderer/render_view_impl.cc:2611: if (!webview()->MainFrame()->IsWebLocalFrame()) Maybe this logic should be on RenderFrameImpl. ...
3 years, 6 months ago (2017-06-02 16:28:16 UTC) #7
Łukasz Anforowicz
Daniel - this CL is (finally) ready for another look please. https://codereview.chromium.org/2918903002/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): ...
3 years, 6 months ago (2017-06-05 22:38:46 UTC) #27
dcheng
LGTM https://codereview.chromium.org/2918903002/diff/100001/components/favicon/content/favicon_url_util.cc File components/favicon/content/favicon_url_util.cc (right): https://codereview.chromium.org/2918903002/diff/100001/components/favicon/content/favicon_url_util.cc#newcode28 components/favicon/content/favicon_url_util.cc:28: default: Nit: prefer to keep this out of ...
3 years, 6 months ago (2017-06-06 20:01:30 UTC) #28
Łukasz Anforowicz
Thanks for the review. I've responded to one of your comments with a mid-size change, ...
3 years, 6 months ago (2017-06-06 20:55:00 UTC) #31
Łukasz Anforowicz
avi@, can you PTAL? I am tagging you because in r263486 you've left a comment ...
3 years, 6 months ago (2017-06-06 20:57:34 UTC) #33
dcheng
still lgtm
3 years, 6 months ago (2017-06-06 21:12:56 UTC) #36
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2918903002/diff/200001/content/public/common/favicon_url.h File content/public/common/favicon_url.h (left): https://codereview.chromium.org/2918903002/diff/200001/content/public/common/favicon_url.h#oldcode24 content/public/common/favicon_url.h:24: TOUCH_PRECOMPOSED_ICON = 1 << 2 They were using ...
3 years, 6 months ago (2017-06-06 23:10:04 UTC) #47
Łukasz Anforowicz
Thanks for the review avi@ (and sorry about not compiling everything and having to fix ...
3 years, 6 months ago (2017-06-06 23:25:36 UTC) #50
Łukasz Anforowicz
pkotwicz@, could you PTAL? I mostly need an owners review for components/favicon, but as somebody ...
3 years, 6 months ago (2017-06-06 23:41:46 UTC) #53
pkotwicz
LGTM with nit https://codereview.chromium.org/2918903002/diff/220001/content/public/common/favicon_url.h File content/public/common/favicon_url.h (right): https://codereview.chromium.org/2918903002/diff/220001/content/public/common/favicon_url.h#newcode22 content/public/common/favicon_url.h:22: kFavIcon, Nit: Rename this to kFavicon ...
3 years, 6 months ago (2017-06-07 18:47:10 UTC) #57
Łukasz Anforowicz
Thanks. https://codereview.chromium.org/2918903002/diff/220001/content/public/common/favicon_url.h File content/public/common/favicon_url.h (right): https://codereview.chromium.org/2918903002/diff/220001/content/public/common/favicon_url.h#newcode22 content/public/common/favicon_url.h:22: kFavIcon, On 2017/06/07 18:47:10, pkotwicz wrote: > Nit: ...
3 years, 6 months ago (2017-06-07 19:16:30 UTC) #60
Łukasz Anforowicz
+michaelbai@ for TBR of android_webview/browser/icon_helper.cc +rockot@ for TBR of chrome/browser/extensions/favicon_downloader*
3 years, 6 months ago (2017-06-07 19:18:33 UTC) #62
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/2918903002/260001
3 years, 6 months ago (2017-06-07 21:48:26 UTC) #68
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 23:40:07 UTC) #71
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/178ff09570a50662f01850fb0cdb...

Powered by Google App Engine
This is Rietveld 408576698