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•2 years 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•2 years ago
|
||
This is a preparation for bug 1636761 which needs to make URLSearchParams not structured-cloneable.
Depends on D199338
Comment 4•2 years 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•2 years ago
|
Comment 6•2 years 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•2 years 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•2 years 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•2 years 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•2 years ago
|
||
Comment 12•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6b9ad25d33f8
https://hg.mozilla.org/mozilla-central/rev/82be6ce55d85
Description
•