Closed Bug 2042068 Opened 23 days ago Closed 20 days ago

Clear the tracking db when history is cleared

Categories

(Firefox for Android :: Privacy, task)

All
Android
task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: petru, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3])

Attachments

(3 files)

Similar to the desktop functionality where the details about blocked trackers are also cleared when

On Fenix we should also request Gecko to clear the tracking db details whenever deleting all browsing history.

This will allow clearing all persisted data about blocked trackers in previous
browsing sessions.

The controller was instantiated in MenuDialogFragment with
coroutineContext = lifecycleScope.coroutineContext which carries
the fragment's Job.
The "Delete browsing data and quit" flow dismisses the fragment
before clearBrowsingDataOnQuit completes, which cancels that Job.
Every subsequent withContext(coroutineContext) inside the
controller's delete methods then throws CancellationException before
entering its lambda potentially skipping the engine clear calls for
tracker data, cookies, cache, and site permissions.

Pass Dispatchers.Main instead. It carries no Job, so the engine calls
inherit the still-alive activity-scoped coroutine's Job and run as
expected during the quit path.

Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1f993d230598 https://hg.mozilla.org/integration/autoland/rev/eec9088b9ed3 part 1 - Add a new clearTrackingDb API to GeckoView r=android-reviewers,geckoview-reviewers,geckoview-api-reviewers,ohall,nalexander https://github.com/mozilla-firefox/firefox/commit/de1260f6382d https://hg.mozilla.org/integration/autoland/rev/83139f456fcf part 2 - Clear trackers data when browsing history is cleared r=android-reviewers,harrisono https://github.com/mozilla-firefox/firefox/commit/2a188b29afa6 https://hg.mozilla.org/integration/autoland/rev/1f22298924db part 3 - Decouple DeleteBrowsingDataController from the menu fragment lifecycle r=android-reviewers,mcarare
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: