Closed Bug 875310 Opened 12 years ago Closed 11 years ago

storage _getList will trigger undefined and not properly call callback

Categories

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

defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+ affected)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + affected

People

(Reporter: oscar.amat.caro, Assigned: oscar.amat.caro)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 Steps to reproduce: Checking the project's usage of IndexedDB I stumbled with this pretty straightforward error. Actual results: In call_log_db.js, there is a _getList method that contains: cursor.onerror = function(event) { if (callback && callback instanceof Function) { callback(e.target.error.name); } }; It triggers undefined exception whenever an error happens. Expected results: cursor.onerror = function(event) { if (callback && callback instanceof Function) { callback(event.target.error.name); } };
Attached file PR link in github
Attachment #753277 - Flags: review?(ferjmoreno)
Thanks Oscar! Nice catch. This patch needs to be uplifted to v1-train as a follow-up of bug 870359 and bug 847404
Assignee: nobody → oscar.amat.caro
blocking-b2g: --- → leo?
Attachment #753277 - Flags: review?(ferjmoreno) → review+
Please nominate for uplift with a risk evaluation.
blocking-b2g: leo? → -
tracking-b2g18: --- → +
Comment on attachment 753277 [details] PR link in github NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 847404 User impact if declined: None, but logcat exception message. Testing completed: Unit tests and functionality tests. Risk to taking this patch (and alternatives if risky): None. String or UUID changes made by this patch: None.
Attachment #753277 - Flags: approval-gaia-v1?
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #753277 - Flags: approval-gaia-v1? → approval-gaia-v1+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: