Closed Bug 2092552 Opened 14 days ago Closed 6 days ago

Reloading a page soon after clearing history does not record a visit

Categories

(Toolkit :: Places, defect, P3)

defect

Tracking

()

RESOLVED FIXED
163 Branch
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.

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.

Blocks: 2092566
Attachment #9682561 - Attachment description: Bug 2092552 - Forget recently visited URIs when history is cleared, r=#places-reviewers. → Bug 2092552 - Record a visit when a page is reloaded soon after clearing history, r=#places-reviewers.
Severity: -- → S4
Priority: -- → P3
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/72a87f105878 https://hg.mozilla.org/integration/autoland/rev/b12f5e7efd1c Record a visit when a page is reloaded soon after clearing history, r=places-reviewers,Standard8.
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: