Closed Bug 1858297 Opened 2 years ago Closed 2 years ago

Store the Firefox Suggest database in the caches directory in Firefox for Android

Categories

(Firefox for Android :: Search, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox119 --- wontfix
firefox120 --- fixed

People

(Reporter: lina, Assigned: ttran, Mentored)

References

(Blocks 1 open bug)

Details

(Whiteboard: [disco])

Attachments

(1 file)

FxSuggestStorage stores the Suggest SQLite database in the databases directory on Android, here: https://github.com/mozilla-mobile/firefox-android/blob/a0ad27d3695a8b051e43272d2bbc0a29c505ba2b/android-components/components/feature/fxsuggest/src/main/java/mozilla/components/feature/fxsuggest/FxSuggestStorage.kt#L28

Unlike our other databases, though, the Suggest database doesn't contain user data, and is safe to throw away and re-create if the device runs low on disk space. I think the caches directory would be a perfect place to store it instead.

Desktop and iOS already store the Suggest database in the caches directory, too, but Android is the odd one out. Let's fix that.

Mentor: lina
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Flags: qe-verify+ → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: