agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(browser): Firefox history import includes never-visited bookmarks

Open codebanditssss opened this issue 1 month ago • 0 comments

Firefox history-only import also brings in bookmarks that have never been visited. They then appear in AO's address-bar suggestions as history.

Repro

  1. Use a Firefox profile with one visited page and one bookmark-only entry in places.sqlite.
  2. The bookmark's moz_places row should have visit_count=0 and last_visit_date=NULL.
  3. Import browsing history only.

AO imports two history entries with no warning. Searching for the never-visited URL returns it, including after reloading the history store. Only the visited page should be imported.

readFirefoxHistory selects all HTTP URLs from moz_places, which contains bookmark-only entries as well as visited pages.

Test notes: Fedora 44, dd67f2d818. Tested the production importer against a disposable SQLite profile, then repeated the history-only import through the app. No personal Firefox profile was used. The source database was unchanged.

Screenshots

Only browsing history is selected.

Only browsing history is selected.

The app imports two history entries from the test profile.

The app imports two history entries from the test profile.

codebanditssss avatar Oct 06 '26 18:10 codebanditssss