Closed
Bug 962516
Opened 11 years ago
Closed 11 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•11 years ago
|
||
Attachment #8363641 -
Flags: review?(ehsan)
| Assignee | ||
Comment 2•11 years ago
|
||
Updated•11 years ago
|
blocking-b2g: 1.3? → 1.3+
Comment 3•11 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•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 7•11 years ago
|
||
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
•