Closed Bug 1220379 Opened 9 years ago Closed 9 years ago

DataCloneError isn't handled in home screen data store mirrors

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-master fixed)

RESOLVED FIXED
FxOS-S11 (13Nov)
blocking-b2g 2.5+
Tracking Status
b2g-master --- fixed

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

[Blocking Requested - why for this release]: Core behaviour can be (practically) irreversibly  broken

So I'm not sure how this came about, but I'm using a phone that has years worth of history and there's an entry that produces a DataCloneError when mirroring in the home screen places datastore mirror.

It throws an exception which doesn't get handled and this stops any subsequent pinned pages interaction from working. The only way to recover is to manipulate the store-mirror object via WebIDE, which is obviously no good.
Attachment #8681618 - Flags: review?(gmarty)
Whiteboard: [systemsfe]
What I find really odd about this is that datastore is backed internally by an indexeddb - it seems weird that any data from a datastore would fail due to a DataCloneError (which is why this code wasn't guarded in the first place), but it obviously can happen in practice. Note, I've never seen this on any test devices, only on my personal phone (which has a *lot* of legacy - I've carried the profile over several different versions and phones).
blocking-b2g: 2.5? → 2.5+
Comment on attachment 8681618 [details] [review]
[gaia] Cwiiis:bug1220379-homescreen-dataclone-error > mozilla-b2g:master

Looks good to me.
Can you land it and maybe write a couple of simple unit tests in a follow up? As I understand this bug is quite rare so we want to make sure we don't regress.
Attachment #8681618 - Flags: review?(gmarty) → review+
Keywords: checkin-needed
See Also: → 1220579
https://github.com/mozilla-b2g/gaia/commit/cd194649986bfe849fc80804fcb72ecd5cf7989b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S11 (13Nov)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: