mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
The read-only `promiseDBConnection` can return stale data if writes are still pending. This patch changes `PlacesSyncUtils` to use the read-write `withConnectionWrapper` instead, ensuring we fetch up-to-date info. I didn't change `fetchURLFrecency` and `fetchGuidsWithAnno`. `fetchURLFrecency` is only used to set the sort index for history records, and frecency is recalculated in the background, anyway. `fetchGuidsWithAnno` is only used in tests. MozReview-Commit-ID: Gq16sNm7K2e