bug(browser): Firefox history import includes never-visited bookmarks
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
- Use a Firefox profile with one visited page and one bookmark-only entry in
places.sqlite. - The bookmark's
moz_placesrow should havevisit_count=0andlast_visit_date=NULL. - 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.
The app imports two history entries from the test profile.