Make transactions inactive during clone
Categories
(Core :: Storage: IndexedDB, enhancement, P3)
Tracking
()
People
(Reporter: asuth, Assigned: sg)
References
()
Details
Attachments
(11 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
There's a nice invariant cleanup at https://github.com/w3c/IndexedDB/pull/310 that would be good to implement.
Tests already were upstreamed by Chrome to WPT in https://github.com/web-platform-tests/wpt/commit/fee6738f9523f5e257accfaea8ddfef2e28cfbcd and we have the test in-tree (although failing) at https://searchfox.org/mozilla-central/source/testing/web-platform/tests/IndexedDB/structured-clone-transaction-state.any.js
:sg, this seems up your alley with your recent cleanups.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Implementing this properly requires the cleanup of the IDBTranscation state model to better match the spec planned for Bug 1497007 (explicit commit).
| Assignee | ||
Comment 2•6 years ago
|
||
Is calling IDBObjectStore.deleteIndex allowed during structured clone? We have a custom test for that here: dom/indexedDB/test/unit/test_clone_before_key_evaluation.js, which fails after making the wpt work.
| Reporter | ||
Comment 3•6 years ago
•
|
||
It was previously allowed but a bad idea to allow it. test_clone_before_key_evaluation.js can be removed as with the changes to the spec and WPT we will have sufficient coverage of this area of code.
Er, and to be explicit: deleteIndex is no longer allowed during structured clone per the spec changes. (And I think this is a significant improvement in the spec!)
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
Also removed obsolete dom/indexedDB/test/test_clone_before_key_evaluation.html test case,
which tested for the opposite behaviour.
Depends on D54266
| Assignee | ||
Comment 6•6 years ago
|
||
Depends on D54267
| Assignee | ||
Comment 7•6 years ago
|
||
Depends on D54321
| Assignee | ||
Comment 8•6 years ago
|
||
Depends on D54322
| Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/18bfaf645c42
https://hg.mozilla.org/mozilla-central/rev/fa4b9c36227a
https://hg.mozilla.org/mozilla-central/rev/82141e34c89f
https://hg.mozilla.org/mozilla-central/rev/812780d706ae
| Assignee | ||
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
Depends on D54322
| Assignee | ||
Comment 14•6 years ago
|
||
Depends on D55079
| Assignee | ||
Comment 15•6 years ago
|
||
Depends on D55080
Comment 16•6 years ago
|
||
| Assignee | ||
Comment 17•6 years ago
|
||
Depends on D55081
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
| bugherder | ||
Comment 23•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•6 years ago
|
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Description
•