Add explicit (non-generated) URLSearchParams deserialization
Categories
(Core :: Storage: IndexedDB, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(2 files)
Bug 1636761 needs to make URLSearchParams not structured-cloneable. Ideally, we would be able to adjust all structured clones containing URLSearchParams stored in IndexedDB to not contain URLSearchParams. The main concern is the amount of data which would need to be read, deserialized, serialized and stored again. It will be better to just create an empty object during deserialization for given tag. However, the support for serialization/deserialization of URLSearchParams is currently automatically generated and that code will disappear after bug 1636761. So we need to add support for explicit (non-generated) URLSearchParams deserialization in IndexedDB first.
Assignee | ||
Comment 1•8 months ago
|
||
Bug 1636761 needs to make URLSearchParams not structured-cloneable. This new
test makes sure that a serialized URLSearchParams object stored in a
pre-existing database is correctly deserialized when read from the pre-existing
database. The test is supposed to be modified as part of making URLSearchParams
not structured-cloneable.
Assignee | ||
Comment 2•8 months ago
|
||
This is a preparation for bug 1636761 which needs to make URLSearchParams not structured-cloneable.
Depends on D199338
Pushed by bugmail@asutherland.org: https://hg.mozilla.org/integration/autoland/rev/464fd132979b Add testing for pre-existing databases containing URLSearchParams; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/ad0e7eb94dfc Add explicit non-default URLSearchParams deserialization; r=dom-storage-reviewers,asuth
Comment 4•8 months ago
|
||
Backed out for causing mochitests failures in test_structuredCloneAndExposed.html.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | dom/tests/mochitest/whatwg/test_structuredCloneAndExposed.html | Test timed out. -
Assignee | ||
Updated•8 months ago
|
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/407b25cb78f3 Add testing for pre-existing databases containing URLSearchParams; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/fa2f2d4895b1 Add explicit non-default URLSearchParams deserialization; r=dom-storage-reviewers,asuth
Comment 6•8 months ago
•
|
||
Backed out for causing xpcshell failures in test_URLSearchParams.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | xpcshell.toml:dom/indexedDB/test/unit/test_URLSearchParams.js | xpcshell return code: 0
Assignee | ||
Comment 7•8 months ago
|
||
For some unknown reason the new test failed on autoland, but it works on try:
https://treeherder.mozilla.org/jobs?repo=try&revision=65a83ad4219f59c3c9cb256f85f022b65c125fed
Assignee | ||
Comment 8•8 months ago
|
||
Aha, the automatic reverting change in phab (done as part of the first backout) https://phabricator.services.mozilla.com/D199338?vs=814699&id=815391#toc zeroed the zip file in the patch. So when I landed it again, the zip file landed as zero sized.
Comment 9•8 months ago
|
||
Also, please take into account the fact that this hazard fail also appears.
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | hazards | unrooted '<returnvalue>' of type 'JSObject*' live across GC call at dom/indexedDB/IndexedDatabase.cpp:396
Comment 11•8 months ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6b9ad25d33f8 Add testing for pre-existing databases containing URLSearchParams; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/82be6ce55d85 Add explicit non-default URLSearchParams deserialization; r=dom-storage-reviewers,asuth
Comment 12•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6b9ad25d33f8
https://hg.mozilla.org/mozilla-central/rev/82be6ce55d85
Description
•