Description[NTP] Fix article suggestion clicks contributing to Most Visited tiles
There's a need to distinguish clicks on different elements on the NTP:
a) clicks on Most Visited tiles.
b) clicks on (newly introduced) article suggestions (aka snippets).
The first should contribute to Most Visited tiles (i.e. boost tiles
that have been clicked in the past). The second shouldn't.
We use a rather ugly workaround to achieve this: a HTML page
implementing a redirect is baked in using a data: scheme URL. This
allows the history backend (as well as server-side implementations)
to distinguish the two cases described above.
The approach competes with more intrusive/controversial alternatives to
achieve the same:
1. Use page transition types (LINK vs AUTO_BOOKMARK) to distinguish
tile clicks from article suggestion clicks: unfortunately both types
have been used in the past (older versions of Chrome).
2. Introducing a new page transition type or qualifier: this can be
considered a layering violation.
3. Use the referrer to expose details about which section of the NTP
has been clicked: however referrers are required to use http/https
or are cleared out otherwise.
Verified requirements:
- Neither dummy redirects (with data: scheme) nor article suggestions
show up in NTP tiles (Most Visited).
- No additional network requests.
- Dummy redirects not visible in history.
- Dummy redirects not shown in omnibox autocomplete.
- Chrome History sync propagates the required information (to
implement analogous server-side logic).
However, the dummy redirect URLs are temporarily user-visible, which
is undesirable.
BUG=645895
Patch Set 1 #
Total comments: 9
Patch Set 2 : Minor: added missing closing bracket. #Patch Set 3 : Added TODO as suggested. #
Total comments: 5
Messages
Total messages: 22 (4 generated)
|