Closed Bug 1636761 Opened 4 years ago Closed 7 months ago

Make URLSearchParams not structured-cloneable

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: baku, Assigned: janv)

References

(Blocks 2 open bugs)

Details

(Keywords: site-compat)

Attachments

(2 files, 2 obsolete files)

Thanks! And URL too.

Severity: -- → S3
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED

We decided to wait with fixing this until post Covid-19 as there are some weird interactions with IDB (retrieving data would throw). And while probably nobody runs into that in practice, it's not worth the additional hassle at this point for the person that might.

Blocks: 1431241
See Also: 1431241
Attachment #9147327 - Attachment is obsolete: true
Depends on: 1637857

Comment on attachment 9147359 [details]
Bug 1636761 - URLSearchParams serialized for XHR in workers, r?smaug

Revision D74712 was moved to bug 1637857. Setting attachment 9147359 [details] to obsolete.

Attachment #9147359 - Attachment is obsolete: true
Keywords: site-compat
Blocks: COVID-19

I found this bug because of this comment: https://github.com/mdn/content/issues/21178#issuecomment-1264062972

Is it time to pick this back up?

I created https://github.com/web-platform-tests/wpt/pull/37994 to test that this isn't supported.

WebKit and Blink now both pass this test as of WebKit preview 170.

Assignee: amarchesini → edgul
Summary: Make URLSearchParams not structured-cloneable → Make URL and URLSearchParams not structured-cloneable
Summary: Make URL and URLSearchParams not structured-cloneable → Make URLSearchParams not structured-cloneable

Hi Jens,

It seems the main issues with the patch landing are related to the indexeddb use.
Could the LWS team take this bug as part of the interop 2024 effort for indexeddb?

Flags: needinfo?(jstutte)

Jan is going to take a look.

Flags: needinfo?(jstutte) → needinfo?(jvarga)
Depends on: 1875781
Assignee: edgul → nobody
Status: ASSIGNED → NEW

URLSearchParams already stored in IndexedDB can't be easily removed. So instead
of doing potentially massive database upgrade, URLSearchParams objects are
deserialized as empty objects from now on.

Depends on D199344

Assignee: nobody → jvarga
Status: NEW → ASSIGNED
Flags: needinfo?(jvarga)
Attachment #9375997 - Attachment description: Bug 1636761 - Deserialize URLSearchParams objects as empty objects; r=#dom-storage → Bug 1636761 - Deserialize URLSearchParams manually; r=#dom-storage
Pushed by bugmail@asutherland.org:
https://hg.mozilla.org/integration/autoland/rev/8a34c69baa2f
Deserialize URLSearchParams manually; r=dom-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/e19167a91657
Make URLSearchParams not structured-cloneable, r=asuth,webidl

Backed out for causing mochitests failures in test_structuredCloneAndExposed.html.

Flags: needinfo?(jvarga)
Flags: needinfo?(jvarga)
Keywords: leave-open
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bcc9567f3950
Deserialize URLSearchParams manually; r=dom-storage-reviewers,asuth

Backed out for causing xpcshell failures in test_URLSearchParams.js.

Flags: needinfo?(jvarga)

For some unknown reason the new test failed on autoland, but it works on try:
https://treeherder.mozilla.org/jobs?repo=try&revision=65a83ad4219f59c3c9cb256f85f022b65c125fed

Flags: needinfo?(jvarga)

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.

Keywords: leave-open
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/149be3af5321
Deserialize URLSearchParams manually; r=dom-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/aedd902e23a7
Make URLSearchParams not structured-cloneable, r=asuth,webidl
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: