Closed
Bug 1138778
Opened 9 years ago
Closed 9 years ago
[ringtones] Don't resolve promises until indexedDB transactions are completed
Categories
(Firefox OS Graveyard :: Gaia::Ringtones, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: squib, Assigned: squib)
Details
Attachments
(3 files)
This comes from bug 1116732 comment 15. Sometimes we close the ringtones app before a read-write transaction completes, causing it to roll back the transaction. I haven't seen this in action myself, but let's be safe and fix it.
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8571729 -
Flags: review?(dflanagan)
Comment 2•9 years ago
|
||
Comment on attachment 8571729 [details] [review] [gaia] jimporter:ringtones-transact > mozilla-b2g:master Looks good to me. I'm assuming you've tested the modification with the ringtones app to ensure that adding and deleting still work as expected. I'm glad you caught this. There was a serious bug in asyncStorage.js based on calling callbacks when requests completed instead of when the transaction was completed. I'd recommend that you uplift this to 2.2
Comment 3•9 years ago
|
||
Comment on attachment 8571729 [details] [review] [gaia] jimporter:ringtones-transact > mozilla-b2g:master Oops, forgot to set r+ with my previous comment.
Attachment #8571729 -
Flags: review?(dflanagan) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Comment 4•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/928c224aa2728015964cfa5732c26edb460c948d
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 5•9 years ago
|
||
reverted for causing https://treeherder.mozilla.org/logviewer.html#?job_id=1480732&repo=b2g-inbound
Status: RESOLVED → REOPENED
Flags: needinfo?(squibblyflabbetydoo)
Resolution: FIXED → ---
Assignee | ||
Comment 6•9 years ago
|
||
Today I learned that Autolander doesn't care if you broke all the tests! Fixing...
Flags: needinfo?(squibblyflabbetydoo)
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8575156 [details] [review] [gaia] jimporter:ringtones-transact-fix > mozilla-b2g:master Re-review time! I ran the tests myself this time instead of blindly trusting Autolander, and everything looks good.
Attachment #8575156 -
Flags: review?(dflanagan)
Comment 10•9 years ago
|
||
Comment on attachment 8575156 [details] [review] [gaia] jimporter:ringtones-transact-fix > mozilla-b2g:master looks good to me.
Attachment #8575156 -
Flags: review?(dflanagan) → review+
Updated•9 years ago
|
Keywords: checkin-needed
Comment 12•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/c64956619cd1af525a96a0ee4cd1b44baa0d5b53
Updated•9 years ago
|
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•