New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 752928 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , iOS
Pri: 1
Type: Feature



Sign in to add a comment

Duplicate tiles are displayed for same webURL/page in NTP

Project Member Reported by subhashi...@chromium.org, Aug 7 2017

Issue description

App Version: 61.0.3163.37
iOS Version: 11.0 Beta 4, 10.3.3
Device: iPhone 6 Plus, iPad Mini 2, iPhone 7 Plus

Steps to reproduce:
1. Launch iOS chrome
2. Sign in to chrome (Account should not have any Most Likely data)
3. Wait until Popular Sites appear on NTP
4. Go to any url or web page i.e. already marked as ‘Popular Site’ (ex. espn.com)
5. Wait until the page is loaded
6. Open a NTP

Observed results:
Duplicate tiles are displayed for same URL/page and marked as ‘Most visited/Top Site’ and ‘Popular Site’

Note: 
1. Go to chrome://ntp-tiles-internals :
      For Top Site Tile - URL contains http://espn.com
      For Popular Site Tile - URL contains http://www.espn.com
   Please see the screenshot below:
   https://drive.google.com/open?id=0B6nZ3QPCkSVcbm84WDV3Wm0tWjQ
2. Tapping on both the URLs, navigate to same webpage.

Expected results:
NTP should contain only ‘Most Visited’ tile if user navigates to a site which is already listed as ‘Popular Site’.

Number of times you were able to reproduce: 5/5
Bug reproducible after clean install: Yes
Bug reproducible after clearing cache and cookies: Yes
Bug reproducible on Chrome Mobile on Android: Not Tested
Bug reproducible on Safari/Firefox: Firefox: NA, Safari: NA
Bug reproducible on current stable build : M60, Yes
Bug reproducible on the current beta channel build : M61, Yes

Type-bug-regression? No

Link to video:
https://drive.google.com/open?id=0B6nZ3QPCkSVcUmN0TXU0cE50QXc

 

Comment 1 by fi...@chromium.org, Aug 7 2017

Labels: -Pri-2 M-61 zine-triaged Pri-1
Owner: fhorschig@chromium.org
Status: Assigned (was: Untriaged)
Could it be that the de-duplication logic is broken? Would you mind taking a look?
Cc: mastiz@chromium.org tschumann@chromium.org
Labels: -Type-Bug -M-61 -found-in-m61 Needs-Feedback M-62 OS-Android Type-Feature
The client-side deduplication is host-based and the hosts of both tiles are different. This means:
https://top.com/x == http://top.com/y
but 
sub.top.com != top.com

There are several possibilities to change that but every solution has different problems:


1). We could change that to check whether one domain is sub domains of the other:

Top domains would consume mobile domains but www.* and m.* domains wouldn't be deduplicated.
m.youtube.com == youtube.com
www.youtube.com == youtube.com
but:
m.youtube.com != www.youtube.com

2.) Deduplicate by tile name:
Every site with "Welcome!" as title would be identical and everything that changes title's frequently would appear multiple times. Quite brittle.

3.) Check for common higher level domain:
espn.com == www.espn.com == m.espn.com
www.a.blogspot.com == a.blogspot.com
but:
news.google.co.uk == google.co.uk
a.blogspot.com == b.blogspot.com

4.) Special case mobile.*, m.*, www.* hosts. This will break for some pages as well but might still be preferable over what we use today.


Any preferences/other ideas?

(I think this is less of a bug and more of an improvement/feature request. Therefore, I do not think we really need this change for M-61.)
Cc: fhorschig@chromium.org treib@chromium.org mvanouwe...@chromium.org sfiera@chromium.org
Issue 703628 has been merged into this issue.
I prepared a CL for 4) because it improves the situation at least slightly: https://crrev.com/c/628879

It would still be nice to know whether we want those special cases.
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b1733404dbb36a76e44206e57431a62458b38ac3

commit b1733404dbb36a76e44206e57431a62458b38ac3
Author: Friedrich Horschig <fhorschig@chromium.org>
Date: Mon Aug 28 17:06:11 2017

Improve deduplication for ntp tiles

This CL introduces a simple blacklist so that popular sites don't
produce duplicates with similar mobile sites.
If ML or TS deliver such duplicate, it will not be prevented.

Bug:  752928 
Change-Id: Ie7222ecb6468d4d727343f7e5416a16be02b380c
Reviewed-on: https://chromium-review.googlesource.com/628879
Commit-Queue: Friedrich Horschig <fhorschig@chromium.org>
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Cr-Commit-Position: refs/heads/master@{#497782}
[modify] https://crrev.com/b1733404dbb36a76e44206e57431a62458b38ac3/components/ntp_tiles/most_visited_sites.cc
[modify] https://crrev.com/b1733404dbb36a76e44206e57431a62458b38ac3/components/ntp_tiles/most_visited_sites.h
[modify] https://crrev.com/b1733404dbb36a76e44206e57431a62458b38ac3/components/ntp_tiles/most_visited_sites_unittest.cc

Status: Fixed (was: Assigned)
Labels: -Needs-Feedback
Status: Verified (was: Fixed)
Verified on:

App version: 62.0.3202.40 beta
Devices: iPhone 6 Plus, iPad Air
iOS Versions: 10.3.3, 11.0

NTP contains only ‘Most Visited’ tile when navigated to a site which is already listed as ‘Popular Site’. Issue is fixed.

Sign in to add a comment