Closed
Bug 1268380
Opened 8 years ago
Closed 8 years ago
Exception Precedence of SyntaxError in IDBObjectStore.createIndex() is Inconsistent to the one in IDB Spec v2.
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
(2 files, 1 obsolete file)
7.36 KB,
patch
|
bevis
:
review+
|
Details | Diff | Splinter Review |
5.34 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
The priority of SyntaxError in IDBObjectStore.createIndex() is lower than ConstraintError as specified in IDB Spec v2 [1].
However, in gecko, SyntaxError is the first one to be validated in IDBObjectStore.createIndex()[2][3].
[1] http://w3c.github.io/IndexedDB/#dom-idbobjectstore-createindex
[2] https://hg.mozilla.org/mozilla-central/annotate/fc15477ce628599519cb0055f52cc195d640dc94/dom/indexedDB/IDBObjectStore.cpp#l1827
[3] https://hg.mozilla.org/mozilla-central/annotate/fc15477ce628599519cb0055f52cc195d640dc94/dom/indexedDB/IDBObjectStore.cpp#l1846
Updated•8 years ago
|
Whiteboard: [tw-dom] → [tw-dom] btpp-active
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Unify 2 IDBObjectStore::createIndex() methods with |(DOMString or sequence<DOMString>) keyPath| to check the syntax of keyPath after validating index name.
Attachment #8746953 -
Flags: review?(khuey)
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Bevis Tseng[:bevistseng][:btseng] from comment #2)
> Created attachment 8746953 [details] [diff] [review]
> (v1) Patch: Lower the precedence of SyntaxError next to ConstraintError in
> IDBObjectStore::CreateIndex().
>
> Unify 2 IDBObjectStore::createIndex() methods with |(DOMString or
> sequence<DOMString>) keyPath| to check the syntax of keyPath after
> validating index name.
DataStore was removed in Bug 1261009, so we could discard the change in DataStoreDB.cpp.
Comment on attachment 8746953 [details] [diff] [review]
(v1) Patch: Lower the precedence of SyntaxError next to ConstraintError in IDBObjectStore::CreateIndex().
Review of attachment 8746953 [details] [diff] [review]:
-----------------------------------------------------------------
Can you add a web-platform-test? (Or maybe ask jsbell if Google has one already?)
Attachment #8746953 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Assignee | ||
Comment 6•8 years ago
|
||
Discard the change of DataStoreDB.cpp done in v1.
Attachment #8746953 -
Attachment is obsolete: true
Attachment #8749222 -
Flags: review+
Assignee | ||
Comment 7•8 years ago
|
||
Add Web Platform Test for the Exception Precedence in IDBObjectStore::createIndex().
Attachment #8749225 -
Flags: review?(khuey)
Assignee | ||
Comment 8•8 years ago
|
||
try server result looks fine:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1e82e24855ad
Attachment #8749225 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/d231a8a96580
https://hg.mozilla.org/integration/mozilla-inbound/rev/d13e15bf4369
Keywords: checkin-needed
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d231a8a96580
https://hg.mozilla.org/mozilla-central/rev/d13e15bf4369
Status: ASSIGNED → RESOLVED
Closed: 8 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
•