Add URLSearchParams to GlobalProperties for import

RESOLVED FIXED in mozilla34

Status

()

Core
XPConnect
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: MattN, Assigned: MattN)

Tracking

Trunk
mozilla34
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 8471984 [details] [diff] [review]
v.1 Add URLSearchParams with test

It's very common in SJS to need to deal with query params but nsIHttpRequest only gives a string for its queryString attribute. Being able to construct a new URLSearchParams from request.queryString would help remove boilerplate[1] from many SJS files. There are also JSMs that would like to parse query strings as well. 

Docs: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
Try push: https://tbpl.mozilla.org/?tree=Try&rev=478119105b93

[1] https://mxr.mozilla.org/mozilla-central/search?string=queryString.split('%26')&find=\.sjs
Attachment #8471984 - Flags: review?(bobbyholley)
Comment on attachment 8471984 [details] [diff] [review]
v.1 Add URLSearchParams with test

Review of attachment 8471984 [details] [diff] [review]:
-----------------------------------------------------------------

Impeccable. r=bholley
Attachment #8471984 - Flags: review?(bobbyholley) → review+

Comment 3

4 years ago
https://hg.mozilla.org/mozilla-central/rev/da50b9d49dd1
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.