[wpt-sync] Sync PR 18396 - Indexed DB: Fix compound index keys vs. autoincrement stores
Categories
(Core :: Storage: IndexedDB, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18396 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18396
Details from upstream follow.
Joshua Bell <jsbell@chromium.org> wrote:
Indexed DB: Fix compound index keys vs. autoincrement stores
Stores with (1) a keyPath (a.k.a. inline keys) and (2) autoIncrement
(a.k.a. a key generator) have primary keys generated by the browser
and inserted into objects lazily, since the renderer doesn't know what
the primary keys will be when the object is serialized.Indexes might have a keyPath that references the same spot in the
object. This is handled by checking if the keypaths match. If so,
the browser synthesizes the index key (same as the primary key). But
Chrome was not handling the case where the index had a compound
key - a keypath that's an array, plucking multiple values out of
the object. An object with unresolved keypaths would normally just
not be indexed, per spec. But since the primary keys should be injected
before the indexing occurs, these should be indexed.Fix this by sending the index keys from the renderer to the browser
as an array with "holes" that need to be filled in.This is covered by an existing Web Platform Test, which we now pass.
Bug: 701972
Change-Id: I14940b23cfcbb7f8b673143b402f574220184fd7
Reviewed-on: https://chromium-review.googlesource.com/1728058
WPT-Export-Revision: 14f50dba482b4f895e3a9132525fcab4507e4bee
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=843a5d2e04f60b0fef9eb362dcc5d46a24a65faa
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=9ad5a932c9f58118adf5726211d0e1cf42dffa24
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=edd5fde5d0735f3337b8c2a568cf0e53525c4197
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=8e34ee1eb1fb921afccc18bce4b8a6889259f1cf
Assignee | ||
Comment 5•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=05271134d772454acca772362ffb17176961f76f
Assignee | ||
Comment 6•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=8f25a7f6c31469a75cee6b5992a00913cb27feee
Assignee | ||
Comment 7•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=2cba27fa67b7d517fd0220d70ac7af5f50779c0c
Assignee | ||
Comment 8•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=6d1010df3586392eaa8285a7fd7683b1145771f9
Assignee | ||
Comment 9•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=50c06a5c99b79abae37fea1fa5b29a4ef2d98392
Assignee | ||
Comment 10•5 years ago
|
||
Ran 1 tests and 3 subtests OK : 1 PASS : 1 FAIL : 2 New tests that have failures or other problems: /IndexedDB/idbobjectstore_createIndex15-autoincrement.htm Auto-Increment Primary Key - invalid key values elsewhere: FAIL
Assignee | ||
Comment 11•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=b9edfa5dab90f098766ac18aa7eea2f517215e2c
Comment 12•5 years ago
|
||
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/f84684870ef5 [wpt PR 18396] - Indexed DB: Fix compound index keys vs. autoincrement stores, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/a581df60f6af [wpt PR 18396] - Update wpt metadata, a=testonly
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f84684870ef5
https://hg.mozilla.org/mozilla-central/rev/a581df60f6af
Description
•