Clear Browsing Data
As a user, I want to erase any traces of my history, or any saved cookie, passwords so nobody can see what I've done previously in the browser or any publishers following my trace
UX: #980
Acceptance Criteria
-I can go to settings to delete all browsing data -I see a toast to indicate that browsing data has been deleted
┆Issue is synchronized with this Jira Task
For clearing browsing history, do you expect the deletions to sync to other devices?
@bbinto What does "on exit" mean on mobile? Android apps have no "Quit" option. You never "exit" an Android app.
There is a whole discussion with bugs and screenshots about this at https://github.com/mozilla-mobile/reference-browser/issues/81
@davismtl - what do you suggest from your experience with other devices/Firefox account implementations? I think we talked about this in our 1-1, and probably not syncing the deletion is the best option.
@st3fan - "on exit" - hard kill of the app (via app drawer/viewer)
@mhammond and I believe that we should sync the deletion of individual pages but that we shouldn't sync bulk deletion like "Clear All".
Given mobile devices will have synced desktop History, a "Clear All" will wipe your desktop History on your local mobile device but we don't think users would expect it to also wipe all of the History on their desktops too.
Given mobile devices will have synced desktop History, a "Clear All" will wipe your desktop History on your local mobile device but we don't think users would expect it to also wipe all of the History on their desktops too.
As a user, I think this makes a lot of sense.
I do think that it would be nice to have a "wipe history/data" feature in about:accounts (Fennec leads to this page when tapping on your username in Sync settings) where they really can purge this across all devices, in case some users do want to purge all history everywhere.
Help pages could explain the rationale here if you decide to go in this direction - given that you are purging user data, it is probably worth it to be careful, even if some people may get annoyed.
@bbinto This looks like a duplicate of this bug. I posted specs there. https://github.com/mozilla-mobile/fenix/issues/980
This issue is referring to the Eng tasks, so I think this should still be kept open (cc @vesta0)
Issue 980 is reviewed and signed off on by UX so this is ready to build.
@vesta0 This story might be blocked by both A/C and GV.
@cpeterso I understand that this API is required to delete browsing data selectively, but do we also need a new GV API for a catch-all method that deletes everything?
The GV team implement a GV API (bug 1489669) to selectively clear user data by site (or for all sites) or by data type (or for all data types). Fenix MVP doesn't necessarily need to expose the by site or by data in the UI. Fenix can use this selective API to implement the simpler "clear all user data" functionality.
GV's Clear User Data API landed last week: https://bugzilla.mozilla.org/show_bug.cgi?id=1489669#c22
And should be available in yesterday's GV 68 Beta build: https://maven.mozilla.org/?prefix=maven2/org/mozilla/geckoview/geckoview-beta-armeabi-v7a/68.0.20190527103257/
I confirm that the user can "Delete browsing data", on the latest build 1.0.1922 (#11500615), with Google Pixel (Android 9), Samsung Galaxy S8 (Android 9), Nokia 6 (Android 7.1.1).
@bbinto after tapping "Allow", the progress bar doesn't stop moving like it is still in progress. But, if you go back to Homescreen the data was deleted. The user doesn't know if the deletion is complete or not. Please see the attached GIF.

Verified as fixed on the latest build 1.0.1922 (#11530616), with Huawei P9 Lite (Android 6), Google Pixel (Android 9), and Nokia 6 (Android 7.1.1).