Closed
Bug 1268378
Opened 9 years ago
Closed 9 years ago
Fire TypeError from IDBDatabase.transaction() if Mode is Invalid.
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: bevis, Assigned: bevis)
Details
(Whiteboard: [tw-dom] btpp-active)
Attachments
(1 file)
In IDB Spec v2 [1], TypeError is expected if |mode| parameter is incorrect.
However, InvalidAccessError is return instead in Gecko [2].
[1] http://w3c.github.io/IndexedDB/#dom-idbdatabase-transaction.
[2] https://hg.mozilla.org/mozilla-central/annotate/fc15477ce628599519cb0055f52cc195d640dc94/dom/indexedDB/IDBDatabase.cpp#l684
Assignee | ||
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Whiteboard: [tw-dom] → [tw-dom] btpp-active
Assignee | ||
Comment 2•9 years ago
|
||
1. Quick fix to return correct error cause.
2. Add Test coverage for this change.
Attachment #8746909 -
Flags: review?(khuey)
Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Attachment #8746909 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8746909 -
Attachment description: (v1) Patch: Fire TypeError from IDBDatabase.transaction() if Mode is Invalid. → (v1) Patch: Fire TypeError from IDBDatabase.transaction() if Mode is Invalid. r=khuey
Keywords: checkin-needed
Comment 5•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•