Closed Bug 1217340 Opened 9 years ago Closed 9 years ago

Handle an empty visits array of history record as a valid case

Categories

(Firefox OS Graveyard :: Sync, 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)

It is possible that we will have a history record with empty visits property if the records is deleted from Desktop: Incorrect payload? Object { id: "OjzL_IsBqFme", histUri: "http://www.ea.com/", title: "http://www.ea.com/", visits: Array[0] <<<<< !!!!! } It's excluded at the code: https://github.com/mozilla-b2g/gaia/blob/master/apps/sync/js/adapters/history.js#L248 It should be recognized as a valid case.
Assignee: nobody → selee
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → FxOS-S10 (30Oct)
Comment on attachment 8677915 [details] [review] [gaia] weilonge:seanlee/DataSync/master/Bug1217340 > mozilla-b2g:master Hey Michiel, Could you help to review the patch? Thank you!
Attachment #8677915 - Flags: review?(mbdejong)
Attachment #8677915 - Flags: review?(mbdejong) → review+
Found out that the delete that it was doing here was for url null, not for the actual histUri. Fix underway.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Whiteboard: [partner-cherry-pick]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: