Bug 1094545. Expose the URLSearchParams API in system globals. r=bholley
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 07 Nov 2014 14:10:39 -0500
changeset 217164 0af22f6c4d4eabec5d8417f2ca7d284fdd68cabb
parent 217163 43845a1d2f21fb40cbea37d2bd913187f4d1731a
child 217165 5fd76d60057c239839f136951da4cf58c5c44ba7
push id52237
push userbzbarsky@mozilla.com
push dateMon, 24 Nov 2014 16:58:32 +0000
treeherdermozilla-inbound@d2beb971bb6e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1094545
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1094545. Expose the URLSearchParams API in system globals. r=bholley
dom/bindings/Codegen.py
dom/webidl/URLSearchParams.webidl
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -11877,16 +11877,17 @@ class CGResolveSystemBinding(CGAbstractM
                                    Argument('JS::Handle<JSObject*>', 'aObj'),
                                    Argument('JS::Handle<jsid>', 'aId'),
                                    Argument('bool*', 'aResolvedp')])
         self.config = config
 
     def definition_body(self):
         descriptors = self.config.getDescriptors(hasInterfaceObject=True,
                                                  isExposedInSystemGlobals=True,
+                                                 workers=False,
                                                  register=True,
                                                  skipGen=False)
 
         def descNameToId(name):
             return "s%s_id" % name
         jsidNames = [descNameToId(desc.name) for desc in descriptors]
         jsidDecls = CGList(CGGeneric("static jsid %s;\n" % name)
                            for name in jsidNames)
--- a/dom/webidl/URLSearchParams.webidl
+++ b/dom/webidl/URLSearchParams.webidl
@@ -10,17 +10,17 @@
  * and related or neighboring rights to this work. In addition, as of 17
  * February 2013, the editors have made this specification available under
  * the Open Web Foundation Agreement Version 1.0, which is available at
  * http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
  */
 
 [Constructor(optional USVString init = ""),
  Constructor(URLSearchParams init),
- Exposed=(Window,Worker)]
+ Exposed=(Window,Worker,System)]
 interface URLSearchParams {
   void append(USVString name, USVString value);
   void delete(USVString name);
   USVString? get(USVString name);
   sequence<USVString> getAll(USVString name);
   boolean has(USVString name);
   void set(USVString name, USVString value);
   // iterable<USVString, USVString>; - Bug 1085284