diff options
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/URL.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/URLSearchParams.webidl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/webidls/URL.webidl b/components/script/dom/webidls/URL.webidl index 8c5d6e1580e..6843bd8b6c2 100644 --- a/components/script/dom/webidls/URL.webidl +++ b/components/script/dom/webidls/URL.webidl @@ -20,7 +20,7 @@ interface URL { attribute USVString port; attribute USVString pathname; attribute USVString search; - // readonly attribute URLSearchParams searchParams; + readonly attribute URLSearchParams searchParams; attribute USVString hash; // This is only doing as well as gecko right now. diff --git a/components/script/dom/webidls/URLSearchParams.webidl b/components/script/dom/webidls/URLSearchParams.webidl index e2075d96a6d..e0266ca6246 100644 --- a/components/script/dom/webidls/URLSearchParams.webidl +++ b/components/script/dom/webidls/URLSearchParams.webidl @@ -15,6 +15,8 @@ interface URLSearchParams { sequence<USVString> getAll(USVString name); boolean has(USVString name); void set(USVString name, USVString value); + // Be careful with implementing iterable interface. + // Search params might be mutated by URL::SetSearch while iterating (discussed in PR #10351). // iterable<USVString, USVString>; stringifier; }; |