Closed Bug 636223 Opened 13 years ago Closed 13 years ago

"Clear Private Data" should disconnect Fennec from Firefox Sync

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(fennec2.0+)

VERIFIED FIXED
Tracking Status
fennec 2.0+ ---

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Whiteboard: [has-patch])

Attachments

(1 file)

Steps to reproduce:
1. Connect to a Firefox Sync account.
2. Press the "Clear Private Data" button in the Fennec prefs.
3. Wait for the next sync to occur.

Expected results: Fennec history is cleared; Fennec is disconnected from Sync.

Actual results: Fennec history is cleared initially, but Fennec is still connected to Sync, and the history is re-populated from the Sync server.

To prevent this, and to prevent any risk of wiping other computers' data via Sync, we should disconnect from Sync when you clear private data.
Attached patch patchSplinter Review
Disconnect from sync on "Clear Private Data."

When you clear private data, this will display a notification "Your Sync account has been removed. [Undo] [X]" just like when you press the Disconnect button manually.  (I think this is a good thing.)
Attachment #514565 - Flags: review?(mark.finkle)
yeah - I agree - the notification is good.
will need tests.
Flags: in-testsuite?
Flags: in-litmus?
Whiteboard: [has-patch][needs review]
tracking-fennec: ? → 2.0+
Comment on attachment 514565 [details] [diff] [review]
patch

The patch itself is fine, but we need to talk to a few more people before landing it.

Asking Madhava for feedback and Stuart too.
Attachment #514565 - Flags: review?(mark.finkle)
Attachment #514565 - Flags: review+
Attachment #514565 - Flags: feedback?(madhava)
Attachment #514565 - Flags: feedback?(pavlov)
Whiteboard: [has-patch][needs review] → [has-patch][needs approval (madhava, stuart)]
This makes sense to me, given that
1. clearing private data should undo your connection to your account (given the "wipe this browser clean of association to me" scenario)
2. we really don't want the clearing to propagate back to desktop
Attachment #514565 - Flags: feedback?(madhava) → feedback+
Whiteboard: [has-patch][needs approval (madhava, stuart)] → [has-patch][needs approval (stuart)]
Comment on attachment 514565 [details] [diff] [review]
patch

mconnor and philikon also approved of this change in IRC.  Pushed the patch so we can start getting nightly coverage:
http://hg.mozilla.org/mobile-browser/rev/8cbaf82a125f

More feedback is still welcome, of course.
Attachment #514565 - Flags: feedback?(pavlov)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [has-patch][needs approval (stuart)] → [has-patch]
Depends on: 638818
Verified on:
Mozilla/5.0 (Android; Linux armv7l; rv:2.0b13pre) Gecko/20100307
Firefox/4.0b13pre Fennec/4.0b6pre
Status: RESOLVED → VERIFIED
https://litmus.mozilla.org/show_test.cgi?id=15206
Flags: in-litmus? → in-litmus+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: