Closed
Bug 962516
Opened 10 years ago
Closed 10 years ago
datastore.add breaks if a record with an existing id is added
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: jmcf, Assigned: baku)
References
Details
Attachments
(1 file)
6.96 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
This exception appears on the console, instead of reporting an error through the promise error function. E/GeckoConsole( 1817): [JavaScript Error: "aEvent.target is undefined" {file: "resource://gre/modules/DataStore.jsm" line: 39}]
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8363641 -
Flags: review?(ehsan)
Assignee | ||
Comment 2•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=dbc3349fa506
Updated•10 years ago
|
blocking-b2g: 1.3? → 1.3+
Comment 3•10 years ago
|
||
Comment on attachment 8363641 [details] [diff] [review] add.patch Review of attachment 8363641 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/datastore/DataStore.jsm @@ -35,5 @@ > "nsIMessageSender"); > > /* Helper functions */ > function createDOMError(aWindow, aEvent) { > - return new aWindow.DOMError(aEvent.target.error.name); Oh, I see now that IndexedDBHelper.newTxn does this for us... Sorry I didn't spot this in previous reviews. ::: dom/datastore/tests/file_duplicate.html @@ +12,5 @@ > + var gEvent; > + var gChangeId; > + > + function is(a, b, msg) { > + alert((a === b ? 'OK' : 'KO') + ' ' + msg) Nit: this can be: function is(a, b, msg) { ok(a === b, msg); }
Attachment #8363641 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=f8c7358d06fa
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7095fa5eeb21
https://hg.mozilla.org/mozilla-central/rev/7095fa5eeb21
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 7•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/800bcd3cc7eb
status-b2g-v1.3:
--- → fixed
status-b2g-v1.4:
--- → fixed
status-firefox27:
--- → wontfix
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•