Closed Bug 1330692 Opened 9 years ago Closed 8 years ago

URLSearchParams constructor is not supported by our webidl codegen

Categories

(Core :: DOM: Core & HTML, defect, P3)

50 Branch
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox54 --- fixed

People

(Reporter: baku, Unassigned)

References

Details

Recently URLSearchParams CTOR is changed: [Constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""), ... but record is not supported, and also without it, 'Constructor(optional (sequence<sequence<USVString>> or USVString) init = "")' gives syntax error.
Flags: needinfo?(bzbarsky)
record is kinda supported as MozMap. But it doesn't have quite the same semantics (e.g. is not order-preserving). We should probably modify MozMap to be named "record" and change its implementation to match the spec. > and also without it, 'Constructor(optional (sequence<sequence<USVString>> or USVString) init = "")' > gives syntax error I don't get a syntax error here. I do get a codegen error because we don't support USVString as the type of the default value in handleDefaultStringValue. That should be pretty simple to fix.
Flags: needinfo?(bzbarsky)
Depends on: 1330698
Depends on: 1330699
Priority: -- → P3
When you add this, please add a test that the _key_ values are getting the USVString treatment.
Long since fixed when the dependencies got fixed.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.