New issue
Advanced search Search tips

Issue 619265 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

chrome.history.getVisits() returns excessive visits for some URLs

Reported by randy.la...@gmail.com, Jun 11 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Steps to reproduce the problem:
1. Install the attached sample extension, which uses chrome.history.getVisits() to show all visits in the past 5 minutes.
2. Go to docs.google.com and then create or open a document
3. Click the extension's icon to see the list of recent visits.

What is the expected behavior?
According to chrome://history, there should be 4 visits:
* https://docs.google.com
* https://docs.google.com/?continue=/%23
* https://docs.google.com/document/u/0/?showDriveBanner=true#
* a long URL for the opened document

What went wrong?
The extension shows over 40 visits. Almost all of them are for the long URL for the opened document, each of them a few milliseconds apart.

WebStore page: 

Did this work before? No 

Chrome version: 51.0.2704.84  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 21.0 r0

This excessive visit behavior does not happen for all URLs. It seems to happen on pages that rely heavily on javascript to load content.
 
visitedUrls.zip
7.0 KB Download
Components: UI>Browser>History
Owner: sdefresne@chromium.org
Status: Assigned (was: Unconfirmed)
@sdefrense for history. History API calls HistoryService::QueryURL here:
https://cs.chromium.org/chromium/src/chrome/browser/extensions/api/history/history_api.cc?rcl=0&l=286
Do you know if it is expected to return 40+ urls with same value (including same #refs)?
One other thing I'd like to add: for the long URL that has 40+ visits, all visits have a transition type of "link". It would make more sense if the first visit had a "link" transition type and the remaining had a type indicating they were generated by the browser, not the user (maybe auto_subframe?).
Owner: sky@chromium.org

Sign in to add a comment