summaryrefslogtreecommitdiffstats
path: root/dom/url/URLSearchParams.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-05-02 16:43:30 -0400
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-05-06 19:13:52 +0200
commit812574875b650526bae87d6eb5542eced678ca24 (patch)
treeb2b8f0e9741c119181503c71fe7588cd3cba83c2 /dom/url/URLSearchParams.h
parentcd196a77d4462f8f4ccda251a1514006d885ef90 (diff)
downloadUXP-812574875b650526bae87d6eb5542eced678ca24.tar
UXP-812574875b650526bae87d6eb5542eced678ca24.tar.gz
UXP-812574875b650526bae87d6eb5542eced678ca24.tar.lz
UXP-812574875b650526bae87d6eb5542eced678ca24.tar.xz
UXP-812574875b650526bae87d6eb5542eced678ca24.zip
Issue #1449 - Implement URLSearchParams's sort()
Diffstat (limited to 'dom/url/URLSearchParams.h')
-rw-r--r--dom/url/URLSearchParams.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dom/url/URLSearchParams.h b/dom/url/URLSearchParams.h
index 9fefd78dd..e02c1179f 100644
--- a/dom/url/URLSearchParams.h
+++ b/dom/url/URLSearchParams.h
@@ -70,7 +70,7 @@ public:
void Get(const nsAString& aName, nsString& aRetval);
- void GetAll(const nsAString& aName, nsTArray<nsString >& aRetval);
+ void GetAll(const nsAString& aName, nsTArray<nsString>& aRetval);
void Set(const nsAString& aName, const nsAString& aValue);
@@ -103,6 +103,8 @@ public:
return mParams[aIndex].mValue;
}
+ nsresult Sort();
+
bool
ReadStructuredClone(JSStructuredCloneReader* aReader);
@@ -171,6 +173,8 @@ public:
const nsAString& GetKeyAtIndex(uint32_t aIndex) const;
const nsAString& GetValueAtIndex(uint32_t aIndex) const;
+ void Sort(ErrorResult& aRv);
+
void Stringify(nsString& aRetval) const
{
Serialize(aRetval);