Closed Bug 1216022 Opened 4 years ago Closed 4 years ago

Clear all Bookmark and History records from FxSync when users logout FxAccount in TV Browser.

Categories

(Firefox OS Graveyard :: Gaia::TV::Browser, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED
FxOS-S10 (30Oct)

People

(Reporter: selee, Assigned: selee)

References

Details

(Whiteboard: [partner-cherry-pick])

Attachments

(1 file)

We have to clear all bookmark and history records from FxSync when users logout FxAccount in TV browser.

When this request is triggered, we have to clear the data in DataStore and IndexedDB.
Assignee: nobody → selee
When a user logout her account in TV Browser, the following steps would be applied:
* Send logout IAC request from TV Browser to SyncManager in System app.
* Clear remote data:
    a. TV Browser: 'fxsync_browser' IndexedDB.

    b. Sync app: 
       * kinto.js's collection data.
       * Matching table
       * Collection modified_time
       * bookmarks_store with FxSyncRecord Entry.
       * places_store with FxSyncId

    c. Settings for removing all records in TV/Phone devices.
       * TV: clear all data when logout
       * Phone: clear the remote entries only
In bug 1216319 I'm implementing part "b."
Depends on: 1216319
Comment on attachment 8677919 [details] [review]
[gaia] weilonge:seanlee/TVBrowser/master/Bug1216022 > mozilla-b2g:master

Hey Fernando, Could you help to review my patch? Thank you!
Attachment #8677919 - Flags: review?(ferjmoreno)
Comment on attachment 8677919 [details] [review]
[gaia] weilonge:seanlee/TVBrowser/master/Bug1216022 > mozilla-b2g:master

Nice! Thank you, Sean.
Attachment #8677919 - Flags: review?(ferjmoreno) → review+
There is a typo in the commit message: s/use/user
Whiteboard: [partner-cherry-pick]
You need to log in before you can comment on or make changes to this bug.