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

Issue 740521 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Clicks on Doodle (and other NTP elements) shouldn't be AUTO_BOOKMARK

Project Member Reported by mastiz@chromium.org, Jul 10 2017

Issue description

Chrome Version: M55 and above
OS: Desktop

What steps will reproduce the problem?
(1) Clear browsing history
(2) Open NTP
(3) Click on "Mail" or Doodle

What is the expected result?
The click is ignored for the purpose of Most Visited tiles (eg. Top Sites).

What happens instead?
The click gets represented in history as AUTO_BOOKMARK and hence contributes to Top Sites. This is due to a buggy implementation  https://codereview.chromium.org/2084953003.
 

Comment 1 by treib@chromium.org, Jul 17 2017

Cc: mastiz@chromium.org
Components: UI>Browser>NewTabPage
Labels: OS-Chrome OS-Linux OS-Mac OS-Windows
Status: Assigned (was: Untriaged)

Comment 2 by fi...@chromium.org, Jul 21 2017

Labels: zine-triaged

Comment 3 by treib@chromium.org, Jan 11 2018

Cc: treib@chromium.org
Owner: ----
Status: Available (was: Assigned)

Comment 4 by treib@chromium.org, Jan 11 2018

Labels: ntp-starter-bug
Cc: sweilun@chromium.org
We'd like to tackle this as an ntp-starter-bug. What's a good place to get started?

It looks like the AUTO_BOOKMARK for tiles are set in: https://cs.chromium.org/chromium/src/chrome/browser/chrome_content_browser_client.cc?l=1583. Is there a known way to test for "IsTile" or "IsNotDoodle" / "IsNotOGBLink" here?
Owner: sweilun@chromium.org
Status: Assigned (was: Available)
Yes, I think that's the place.

I'm not sure how to differentiate those link clicks. Maybe it's possible to determine if it came from the MV iframe?
Labels: NTPDoodle
From what I have found out:
https://cs.chromium.org/chromium/src/chrome/browser/chrome_content_browser_client.cc?rcl=5e3bf2a1f618d292d253ee5b0236fcd2cb909c50&l=1595
This is the place where the navi transition type gets changed to AUTO_BOOKMARK for all the link clicked on the NTP. 

https://cs.chromium.org/chromium/src/content/browser/frame_host/navigator_impl.cc?rcl=5e3bf2a1f618d292d253ee5b0236fcd2cb909c50&l=464
This is the place where the OverrideNavigationParams gets called. However, when attempting to get the frame name from the render_frame_host, no matter which NTP element you click, they both return an empty frame name, and thus it is not that easy to differentiate the click originate from OGB or Doodle or MostVisited Tile. 
Owner: ----
Status: Available (was: Assigned)
Returning this to the queue as Weilun's shifted focus to Metrics.

Sign in to add a comment