Reloading a page soon after clearing history does not record a visit
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
History::VisitURI skips a reload of a URI visited in the last 6 minutes (mRecentlyVisitedURIs). Clearing history does not reset that map, because only tests call mozIAsyncHistory.clearCache(). So after Clear History, reloading a page that was visited shortly before records no visit, and the page stays missing from history.
This makes browser_bug680727.js and browser_bug680727_feltPrivacy.js fail with "We have visited the URI." on their second run in mochitest-browser-chrome-repeat jobs.
The fix is to empty mRecentlyVisitedURIs in the parent-process History_cleared listener added in bug 2022665, add a direct check to browser_visited_status_after_history_clear.js, and remove the tests' verify-standalone skip-ifs. Removing a single page (PlacesUtils.history.remove) has the same problem and is left for a follow-up.
| Assignee | ||
Comment 1•14 days ago
|
||
History::VisitURI skips a reload of a URI visited in the last 6 minutes, and clearing history did not reset that memory, so a page reloaded soon after Clear History was never recorded as visited. browser_bug680727.js and browser_bug680727_feltPrivacy.js hit this when run twice in the same session.
This also lets --verify pass for these tests, so the verify-standalone skip-ifs added in bug 1995208 are removed.
Updated•11 days ago
|
Updated•11 days ago
|
Comment 3•6 days ago
|
||
| bugherder | ||
Description
•