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

Issue 2880723002: Favicon url is used only if it is valid (Closed)

Created:
3 years, 7 months ago by gambard
Modified:
3 years, 7 months ago
CC:
chromium-reviews, ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Favicon url is used only if it is valid The javascript extracting the favicon urls from a page returns valid and invalid urls. The CRWWebController should only return the valid urls, as returning invalid url leads to a crash. BUG=720666 Review-Url: https://codereview.chromium.org/2880723002 Cr-Commit-Position: refs/heads/master@{#472722} Committed: https://chromium.googlesource.com/chromium/src/+/2a03a5de9275d45001da304069313dc7810a63ec

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add the default favicon in native code #

Total comments: 10

Patch Set 3 : Address comments #

Patch Set 4 : Change the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -18 lines) Patch
M ios/web/web_state/favicon_callbacks_inttest.mm View 1 3 chunks +4 lines, -3 lines 0 comments Download
M ios/web/web_state/js/resources/common.js View 1 1 chunk +0 lines, -13 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 2 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
gambard
PTAL.
3 years, 7 months ago (2017-05-12 07:50:58 UTC) #3
Eugene But (OOO till 7-30)
Gauthier, is it possible to write a test for prevent this regression in the future? ...
3 years, 7 months ago (2017-05-12 15:04:08 UTC) #8
gambard
I tried to add tests but the function is way too buried inside the class... ...
3 years, 7 months ago (2017-05-12 15:43:39 UTC) #9
Eugene But (OOO till 7-30)
On 2017/05/12 15:43:39, gambard wrote: > I tried to add tests but the function is ...
3 years, 7 months ago (2017-05-12 17:10:07 UTC) #10
gambard
On 2017/05/12 17:10:07, Eugene But wrote: > On 2017/05/12 15:43:39, gambard wrote: > > I ...
3 years, 7 months ago (2017-05-15 12:30:22 UTC) #11
Eugene But (OOO till 7-30)
On 2017/05/15 12:30:22, gambard wrote: > On 2017/05/12 17:10:07, Eugene But wrote: > > On ...
3 years, 7 months ago (2017-05-15 14:42:53 UTC) #12
gambard
On 2017/05/15 14:42:53, Eugene But wrote: > On 2017/05/15 12:30:22, gambard wrote: > > On ...
3 years, 7 months ago (2017-05-15 14:58:53 UTC) #13
Eugene But (OOO till 7-30)
On 2017/05/15 14:58:53, gambard wrote: > On 2017/05/15 14:42:53, Eugene But wrote: > > On ...
3 years, 7 months ago (2017-05-15 15:01:22 UTC) #14
gambard
Looking at the javascript code, I think we should move the code adding the default ...
3 years, 7 months ago (2017-05-16 08:28:10 UTC) #15
Eugene But (OOO till 7-30)
On 2017/05/16 08:28:10, gambard wrote: > Looking at the javascript code, I think we should ...
3 years, 7 months ago (2017-05-16 15:35:58 UTC) #16
gambard
On 2017/05/16 15:35:58, Eugene But wrote: > On 2017/05/16 08:28:10, gambard wrote: > > Looking ...
3 years, 7 months ago (2017-05-16 16:02:45 UTC) #17
gambard
Thanks, PTAL.
3 years, 7 months ago (2017-05-17 09:37:50 UTC) #18
Eugene But (OOO till 7-30)
Generally LG, just have minor comments. https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/favicon_callbacks_inttest.mm File ios/web/web_state/favicon_callbacks_inttest.mm (right): https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/favicon_callbacks_inttest.mm#newcode168 ios/web/web_state/favicon_callbacks_inttest.mm:168: GURL("https://chromium.test")); Should this ...
3 years, 7 months ago (2017-05-17 14:18:19 UTC) #19
gambard
Thanks, PTAL. https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/favicon_callbacks_inttest.mm File ios/web/web_state/favicon_callbacks_inttest.mm (right): https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/favicon_callbacks_inttest.mm#newcode168 ios/web/web_state/favicon_callbacks_inttest.mm:168: GURL("https://chromium.test")); On 2017/05/17 14:18:18, Eugene But wrote: ...
3 years, 7 months ago (2017-05-17 16:05:37 UTC) #20
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode2574 ios/web/web_state/ui/crw_web_controller.mm:2574: if (!hasFavicon) { On 2017/05/17 16:05:37, gambard wrote: ...
3 years, 7 months ago (2017-05-17 18:30:18 UTC) #21
gambard
Thanks! https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2880723002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode2574 ios/web/web_state/ui/crw_web_controller.mm:2574: if (!hasFavicon) { On 2017/05/17 18:30:18, Eugene But ...
3 years, 7 months ago (2017-05-18 07:20:56 UTC) #22
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/2880723002/60001
3 years, 7 months ago (2017-05-18 07:21:36 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 07:35:44 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2a03a5de9275d45001da30406931...

Powered by Google App Engine
This is Rietveld 408576698