Bug 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku
authordanielleleb <danielleleb12@gmail.com>
Tue, 12 Mar 2019 17:38:47 +0000
changeset 521608 f87b1c69a88d995473d2351fa55247774be9c395
parent 521607 44fee8919949e9b0411ff723443a7b3ff6ae8b86
child 521609 e263d6805e145e9ad6d290dd2f8f8d7d2bbb2ae5
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8, baku
bugs1532934
milestone67.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 1532934 - Enable ESLint for dom/url (automatic changes). r=Standard8,baku Differential Revision: https://phabricator.services.mozilla.com/D22736
dom/url/tests/browser_download_after_revoke.js
dom/url/tests/file_url.jsm
dom/url/tests/file_worker_url.jsm
dom/url/tests/jsm_url_worker.js
dom/url/tests/test_bloburl_location.html
dom/url/tests/test_bug883784.jsm
dom/url/tests/test_unknown_url_origin.html
dom/url/tests/test_url.html
dom/url/tests/test_urlExceptions.html
dom/url/tests/test_urlSearchParams_sorting.html
dom/url/tests/test_urlSearchParams_utf8.html
dom/url/tests/test_url_data.html
dom/url/tests/test_url_empty_port.html
dom/url/tests/test_url_malformedHost.html
dom/url/tests/test_urlutils_stringify.html
dom/url/tests/test_worker_url.html
dom/url/tests/test_worker_urlApi.html
dom/url/tests/test_worker_urlSearchParams.html
dom/url/tests/test_worker_url_exceptions.html
dom/url/tests/urlApi_worker.js
dom/url/tests/urlSearchParams_commons.js
dom/url/tests/urlSearchParams_worker.js
dom/url/tests/url_exceptions_worker.js
dom/url/tests/url_worker.js
--- a/dom/url/tests/browser_download_after_revoke.js
+++ b/dom/url/tests/browser_download_after_revoke.js
@@ -1,46 +1,46 @@
-function test () {
+function test() {
   waitForExplicitFinish();
   gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
 
   function onLoad() {
     info("Page loaded.");
 
     var listener = {
-      onOpenWindow: function(aXULWindow) {
+      onOpenWindow(aXULWindow) {
         info("Download window shown...");
         Services.wm.removeListener(listener);
 
         function downloadOnLoad() {
           domwindow.removeEventListener("load", downloadOnLoad, true);
 
 	  is(domwindow.document.location.href, "chrome://mozapps/content/downloads/unknownContentType.xul", "Download page appeared");
 
 	  domwindow.close();
           gBrowser.removeTab(gBrowser.selectedTab);
 	  finish();
         }
 
         var domwindow = aXULWindow.docShell.domWindow;
         domwindow.addEventListener("load", downloadOnLoad, true);
       },
-      onCloseWindow: function(aXULWindow) {},
-    }
+      onCloseWindow(aXULWindow) {},
+    };
 
     Services.wm.addListener(listener);
 
     info("Creating BlobURL and clicking on a HTMLAnchorElement...");
     ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
-      let blob = new content.Blob(['test'], { type: 'text/plain' });
+      let blob = new content.Blob(["test"], { type: "text/plain" });
       let url = content.URL.createObjectURL(blob);
 
-      let link = content.document.createElement('a');
+      let link = content.document.createElement("a");
       link.href = url;
-      link.download = 'example.txt';
+      link.download = "example.txt";
       content.document.body.appendChild(link);
       link.click();
 
       content.URL.revokeObjectURL(url);
     });
   }
 
   BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser).then(onLoad);
--- a/dom/url/tests/file_url.jsm
+++ b/dom/url/tests/file_url.jsm
@@ -1,22 +1,22 @@
-var EXPORTED_SYMBOLS = ['checkFromJSM'];
+var EXPORTED_SYMBOLS = ["checkFromJSM"];
 
 function checkFromJSM(ok, is) {
-  Cu.importGlobalProperties(['URL', 'Blob']);
+  Cu.importGlobalProperties(["URL", "Blob"]);
 
-  var url = new URL('http://www.example.com');
+  var url = new URL("http://www.example.com");
   is(url.href, "http://www.example.com/", "JSM should have URL");
 
-  var url2 = new URL('/foobar', url);
+  var url2 = new URL("/foobar", url);
   is(url2.href, "http://www.example.com/foobar", "JSM should have URL - based on another URL");
 
-  var blob = new Blob(['a']);
+  var blob = new Blob(["a"]);
   var url = URL.createObjectURL(blob);
   ok(url, "URL is created!");
 
   var u = new URL(url);
   ok(u, "URL created");
   is(u.origin, "null", "Url doesn't have an origin if created in a JSM");
 
   URL.revokeObjectURL(url);
   ok(true, "URL is revoked");
-}
\ No newline at end of file
+}
--- a/dom/url/tests/file_worker_url.jsm
+++ b/dom/url/tests/file_worker_url.jsm
@@ -1,26 +1,25 @@
-var EXPORTED_SYMBOLS = ['checkFromJSM'];
+var EXPORTED_SYMBOLS = ["checkFromJSM"];
 
-Cu.importGlobalProperties(['URL']);
+Cu.importGlobalProperties(["URL"]);
 
 function checkFromJSM(ok, is, finish) {
   let worker = new ChromeWorker("jsm_url_worker.js");
   worker.onmessage = function(event) {
-
-   if (event.data.type == 'finish') {
+   if (event.data.type == "finish") {
      finish();
-    } else if (event.data.type == 'url') {
+    } else if (event.data.type == "url") {
       URL.revokeObjectURL(event.data.url);
-    } else if (event.data.type == 'status') {
+    } else if (event.data.type == "status") {
       ok(event.data.status, event.data.msg);
     }
-  }
+  };
 
   worker.onerror = function(event) {
     is(event.target, worker);
     ok(false, "Worker had an error: " + event.data);
     worker.terminate();
     finish();
   };
 
   worker.postMessage(0);
-}
\ No newline at end of file
+}
--- a/dom/url/tests/jsm_url_worker.js
+++ b/dom/url/tests/jsm_url_worker.js
@@ -1,83 +1,83 @@
 onmessage = function(event) {
   if (event.data != 0) {
-    var worker = new Worker('jsm_url_worker.js');
+    var worker = new Worker("jsm_url_worker.js");
     worker.onmessage = function(event) {
       postMessage(event.data);
-    }
+    };
 
     worker.postMessage(event.data - 1);
     return;
   }
 
   status = false;
   try {
     if ((URL instanceof Object)) {
       status = true;
     }
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'URL object:' + URL});
+  postMessage({type: "status", status, msg: "URL object:" + URL});
 
   status = false;
   var blob = null;
   try {
     blob = new Blob([]);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob:' + blob});
+  postMessage({type: "status", status, msg: "Blob:" + blob});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(blob);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob URL:' + url});
+  postMessage({type: "status", status, msg: "Blob URL:" + url});
 
   status = false;
   try {
     URL.revokeObjectURL(url);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob Revoke URL'});
+  postMessage({type: "status", status, msg: "Blob Revoke URL"});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(true);
-  } catch(e) {
+  } catch (e) {
     status = true;
   }
 
-  postMessage({type: 'status', status: status, msg: 'CreateObjectURL should fail if the arg is not a blob'});
+  postMessage({type: "status", status, msg: "CreateObjectURL should fail if the arg is not a blob"});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(blob);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob URL2:' + url});
+  postMessage({type: "status", status, msg: "Blob URL2:" + url});
 
   status = false;
   try {
     URL.createObjectURL(new Object());
-  } catch(e) {
+  } catch (e) {
     status = true;
   }
 
-  postMessage({type: 'status', status: status, msg: 'Exception wanted' });
+  postMessage({type: "status", status, msg: "Exception wanted" });
 
-  postMessage({type: 'url', url: url});
+  postMessage({type: "url", url});
 
-  postMessage({type: 'finish' });
-}
+  postMessage({type: "finish" });
+};
--- a/dom/url/tests/test_bloburl_location.html
+++ b/dom/url/tests/test_bloburl_location.html
@@ -12,19 +12,19 @@
 var expectedData = null;
 onmessage = function(e) {
   if (expectedData === null) {
     expectedData = e.data;
   } else {
     is(e.data, expectedData, "Pathname should be not be changed");
     SimpleTest.finish();
   }
-}
+};
 
-var ifr = document.createElement('iframe');
+var ifr = document.createElement("iframe");
 document.body.appendChild(ifr);
 
 ifr.src = "data:text/html,<script>location=URL.createObjectURL(new%20Blob(['<script>parent.postMessage(location.pathname,\"*\");location.pathname=\"foo\";parent.postMessage(location.pathname,\"*\");<\/s' +'cript>'], {type:\"text/html\"}));<\/script>";
 
 SimpleTest.waitForExplicitFinish();
 
   </script>
 </body>
--- a/dom/url/tests/test_bug883784.jsm
+++ b/dom/url/tests/test_bug883784.jsm
@@ -1,40 +1,40 @@
 var EXPORTED_SYMBOLS = ["Test"];
 
 Cu.importGlobalProperties(["URL", "XMLHttpRequest"]);
 
 var Test = {
-  start: function(ok, is, finish) {
+  start(ok, is, finish) {
     let worker = new ChromeWorker("jsm_url_worker.js");
     worker.onmessage = function(event) {
-      if (event.data.type == 'status') {
+      if (event.data.type == "status") {
         ok(event.data.status, event.data.msg);
-      } else if (event.data.type == 'url') {
+      } else if (event.data.type == "url") {
         var xhr = new XMLHttpRequest();
-        xhr.open('GET', event.data.url, false);
+        xhr.open("GET", event.data.url, false);
         xhr.onreadystatechange = function() {
           if (xhr.readyState == 4) {
             ok(true, "Blob readable!");
             URL.revokeObjectURL(event.data.url);
             finish();
           }
-        }
+        };
         xhr.onerror = function() {
           ok(false, "Blob unreadable, should not happen!");
           URL.revokeObjectURL(event.data.url);
           finish();
-        }
+        };
         xhr.send();
       }
     };
 
     var self = this;
     worker.onerror = function(event) {
       is(event.target, worker);
       ok(false, "Worker had an error: " + event.data);
       self.worker.terminate();
       finish();
     };
 
     worker.postMessage(0);
-  }
+  },
 };
--- a/dom/url/tests/test_unknown_url_origin.html
+++ b/dom/url/tests/test_unknown_url_origin.html
@@ -4,14 +4,14 @@
   <meta charset="utf-8">
   <title>Test for unknwon URL.origin</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
   <script type="application/javascript">
 
-  is ((new URL("blob:http://foo.com/bar")).origin, "http://foo.com");
-  is ((new URL("blob:blob:http://foo.com/bar")).origin, "http://foo.com");
+  is((new URL("blob:http://foo.com/bar")).origin, "http://foo.com");
+  is((new URL("blob:blob:http://foo.com/bar")).origin, "http://foo.com");
 
   </script>
 </body>
 </html>
--- a/dom/url/tests/test_url.html
+++ b/dom/url/tests/test_url.html
@@ -18,317 +18,317 @@
 <pre id="test">
 </pre>
   <script type="application/javascript">
 
   /** Test for Bug 887364 **/
   ok("URL" in window, "window.URL exists");
 
   var tests = [
-    { url: 'http://www.abc.com',
+    { url: "http://www.abc.com",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/',
-      origin: 'http://www.abc.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/',
-      search: '',
-      hash: ''
+      href: "http://www.abc.com/",
+      origin: "http://www.abc.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/",
+      search: "",
+      hash: "",
     },
-    { url: 'ftp://auser:apw@www.abc.com',
+    { url: "ftp://auser:apw@www.abc.com",
       base: undefined,
       error: false,
-      href: 'ftp://auser:apw@www.abc.com/',
-      origin: 'ftp://www.abc.com',
-      protocol: 'ftp:',
-      username: 'auser',
-      password: 'apw',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/',
-      search: '',
-      hash: ''
+      href: "ftp://auser:apw@www.abc.com/",
+      origin: "ftp://www.abc.com",
+      protocol: "ftp:",
+      username: "auser",
+      password: "apw",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/",
+      search: "",
+      hash: "",
     },
-    { url: 'http://www.abc.com:90/apath/',
+    { url: "http://www.abc.com:90/apath/",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com:90/apath/',
-      origin: 'http://www.abc.com:90',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com:90',
-      hostname: 'www.abc.com',
-      port: '90',
-      pathname: '/apath/',
-      search: '',
-      hash: ''
+      href: "http://www.abc.com:90/apath/",
+      origin: "http://www.abc.com:90",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com:90",
+      hostname: "www.abc.com",
+      port: "90",
+      pathname: "/apath/",
+      search: "",
+      hash: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt#ahash',
+    { url: "http://www.abc.com/apath/afile.txt#ahash",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt#ahash',
-      origin: 'http://www.abc.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/apath/afile.txt',
-      search: '',
-      hash: '#ahash'
+      href: "http://www.abc.com/apath/afile.txt#ahash",
+      origin: "http://www.abc.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/apath/afile.txt",
+      search: "",
+      hash: "#ahash",
     },
-    { url: 'http://example.com/?test#hash',
+    { url: "http://example.com/?test#hash",
       base: undefined,
       error: false,
-      href: 'http://example.com/?test#hash',
-      origin: 'http://example.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'example.com',
-      hostname: 'example.com',
-      port: '',
-      pathname: '/',
-      search: '?test',
-      hash: '#hash'
+      href: "http://example.com/?test#hash",
+      origin: "http://example.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "example.com",
+      hostname: "example.com",
+      port: "",
+      pathname: "/",
+      search: "?test",
+      hash: "#hash",
     },
-    { url: 'http://example.com/?test',
+    { url: "http://example.com/?test",
       base: undefined,
       error: false,
-      href: 'http://example.com/?test',
-      origin: 'http://example.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'example.com',
-      hostname: 'example.com',
-      port: '',
-      pathname: '/',
-      search: '?test',
-      hash: ''
+      href: "http://example.com/?test",
+      origin: "http://example.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "example.com",
+      hostname: "example.com",
+      port: "",
+      pathname: "/",
+      search: "?test",
+      hash: "",
     },
-    { url: 'http://example.com/carrot#question%3f',
+    { url: "http://example.com/carrot#question%3f",
       base: undefined,
       error: false,
-      hash: '#question%3f'
+      hash: "#question%3f",
     },
-    { url: 'https://example.com:4443?',
+    { url: "https://example.com:4443?",
       base: undefined,
       error: false,
-      protocol: 'https:',
-      port: '4443',
-      pathname: '/',
-      hash: '',
-      search: ''
+      protocol: "https:",
+      port: "4443",
+      pathname: "/",
+      hash: "",
+      search: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt#ahash?asearch',
+    { url: "http://www.abc.com/apath/afile.txt#ahash?asearch",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt#ahash?asearch',
-      protocol: 'http:',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash?asearch',
-      search: ''
+      href: "http://www.abc.com/apath/afile.txt#ahash?asearch",
+      protocol: "http:",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash?asearch",
+      search: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt?asearch#ahash',
+    { url: "http://www.abc.com/apath/afile.txt?asearch#ahash",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt?asearch#ahash',
-      protocol: 'http:',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: '?asearch'
+      href: "http://www.abc.com/apath/afile.txt?asearch#ahash",
+      protocol: "http:",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "?asearch",
     },
-    { url: 'http://abc.com/apath/afile.txt?#ahash',
+    { url: "http://abc.com/apath/afile.txt?#ahash",
       base: undefined,
       error: false,
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: ''
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "",
     },
-    { url: 'http://auser:apassword@www.abc.com:90/apath/afile.txt?asearch#ahash',
+    { url: "http://auser:apassword@www.abc.com:90/apath/afile.txt?asearch#ahash",
       base: undefined,
       error: false,
-      protocol: 'http:',
-      username: 'auser',
-      password: 'apassword',
-      host: 'www.abc.com:90',
-      hostname: 'www.abc.com',
-      port: '90',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: '?asearch',
-      origin: 'http://www.abc.com:90'
+      protocol: "http:",
+      username: "auser",
+      password: "apassword",
+      host: "www.abc.com:90",
+      hostname: "www.abc.com",
+      port: "90",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "?asearch",
+      origin: "http://www.abc.com:90",
     },
 
-    { url: '/foo#bar',
-      base: 'www.test.org',
+    { url: "/foo#bar",
+      base: "www.test.org",
       error: true,
     },
-    { url: '/foo#bar',
+    { url: "/foo#bar",
       base: null,
       error: true,
     },
-    { url: '/foo#bar',
+    { url: "/foo#bar",
       base: 42,
       error: true,
     },
-    { url: 'ftp://ftp.something.net',
+    { url: "ftp://ftp.something.net",
       base: undefined,
       error: false,
-      protocol: 'ftp:',
+      protocol: "ftp:",
     },
-    { url: 'file:///tmp/file',
+    { url: "file:///tmp/file",
       base: undefined,
       error: false,
-      protocol: 'file:',
+      protocol: "file:",
     },
-    { url: 'gopher://gopher.something.net',
+    { url: "gopher://gopher.something.net",
       base: undefined,
       error: false,
-      protocol: 'gopher:',
+      protocol: "gopher:",
     },
-    { url: 'ws://ws.something.net',
+    { url: "ws://ws.something.net",
       base: undefined,
       error: false,
-      protocol: 'ws:',
+      protocol: "ws:",
     },
-    { url: 'wss://ws.something.net',
+    { url: "wss://ws.something.net",
       base: undefined,
       error: false,
-      protocol: 'wss:',
+      protocol: "wss:",
     },
-    { url: 'foo://foo.something.net',
+    { url: "foo://foo.something.net",
       base: undefined,
       error: false,
-      protocol: 'foo:',
+      protocol: "foo:",
     },
 
-    { url: 'about:blank',
+    { url: "about:blank",
       base: undefined,
       error: false,
-      protocol: 'about:',
-      pathname: 'blank',
+      protocol: "about:",
+      pathname: "blank",
       skip_setters: false,
     },
 
-    { url: 'foo:bar?what#yeah',
+    { url: "foo:bar?what#yeah",
       base: undefined,
       error: false,
-      protocol: 'foo:',
-      pathname: 'bar',
-      search: '?what',
-      hash: '#yeah',
+      protocol: "foo:",
+      pathname: "bar",
+      search: "?what",
+      hash: "#yeah",
       skip_setters: false,
     },
 
-    { url: 'http://sub2.xn--lt-uia.mochi.test:8888/foo',
+    { url: "http://sub2.xn--lt-uia.mochi.test:8888/foo",
       base: undefined,
       error: false,
-      href: 'http://sub2.xn--lt-uia.mochi.test:8888/foo',
-      origin: 'http://sub2.xn--lt-uia.mochi.test:8888',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'sub2.xn--lt-uia.mochi.test:8888',
-      hostname: 'sub2.xn--lt-uia.mochi.test',
-      port: '8888',
-      pathname: '/foo',
-      search: '',
-      hash: ''
+      href: "http://sub2.xn--lt-uia.mochi.test:8888/foo",
+      origin: "http://sub2.xn--lt-uia.mochi.test:8888",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "sub2.xn--lt-uia.mochi.test:8888",
+      hostname: "sub2.xn--lt-uia.mochi.test",
+      port: "8888",
+      pathname: "/foo",
+      search: "",
+      hash: "",
     },
-    { url: 'http://sub2.ält.mochi.test:8888/foo',
+    { url: "http://sub2.ält.mochi.test:8888/foo",
       base: undefined,
       error: false,
-      href: 'http://sub2.xn--lt-uia.mochi.test:8888/foo',
-      origin: 'http://sub2.xn--lt-uia.mochi.test:8888',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'sub2.xn--lt-uia.mochi.test:8888',
-      hostname: 'sub2.xn--lt-uia.mochi.test',
-      port: '8888',
-      pathname: '/foo',
-      search: '',
-      hash: ''
+      href: "http://sub2.xn--lt-uia.mochi.test:8888/foo",
+      origin: "http://sub2.xn--lt-uia.mochi.test:8888",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "sub2.xn--lt-uia.mochi.test:8888",
+      hostname: "sub2.xn--lt-uia.mochi.test",
+      port: "8888",
+      pathname: "/foo",
+      search: "",
+      hash: "",
     },
   ];
 
-  while(tests.length) {
+  while (tests.length) {
     var test = tests.shift();
 
     var error = false;
     var url;
     try {
       if (test.base) {
         url = new URL(test.url, test.base);
       } else {
         url = new URL(test.url);
       }
-    } catch(e) {
+    } catch (e) {
       error = true;
     }
 
     is(test.error, error, "Error creating URL");
     if (test.error) {
       continue;
     }
 
-    if ('href' in test) is(url.href, test.href, "href");
-    if ('origin' in test) is(url.origin, test.origin, "origin");
-    if ('protocol' in test) is(url.protocol, test.protocol, "protocol");
-    if ('username' in test) is(url.username, test.username, "username");
-    if ('password' in test) is(url.password, test.password, "password");
-    if ('host' in test) is(url.host, test.host, "host");
-    if ('hostname' in test) is(url.hostname, test.hostname, "hostname");
-    if ('port' in test) is(url.port, test.port, "port");
-    if ('pathname' in test) is(url.pathname, test.pathname, "pathname");
-    if ('search' in test) is(url.search, test.search, "search");
-    if ('hash' in test) is(url.hash, test.hash, "hash");
+    if ("href" in test) is(url.href, test.href, "href");
+    if ("origin" in test) is(url.origin, test.origin, "origin");
+    if ("protocol" in test) is(url.protocol, test.protocol, "protocol");
+    if ("username" in test) is(url.username, test.username, "username");
+    if ("password" in test) is(url.password, test.password, "password");
+    if ("host" in test) is(url.host, test.host, "host");
+    if ("hostname" in test) is(url.hostname, test.hostname, "hostname");
+    if ("port" in test) is(url.port, test.port, "port");
+    if ("pathname" in test) is(url.pathname, test.pathname, "pathname");
+    if ("search" in test) is(url.search, test.search, "search");
+    if ("hash" in test) is(url.hash, test.hash, "hash");
 
-    if ('skip_setters' in test && test.skip_setters == false) {
+    if ("skip_setters" in test && test.skip_setters == false) {
       info("Skip setter methods for URL: " + test);
       continue;
     }
 
-    url = new URL('https://www.example.net/what#foo?bar');
+    url = new URL("https://www.example.net/what#foo?bar");
     ok(url, "Url exists!");
 
-    if ('href' in test) url.href = test.href;
-    if ('protocol' in test) url.protocol = test.protocol;
-    if ('username' in test && test.username) url.username = test.username;
-    if ('password' in test && test.password) url.password = test.password;
-    if ('host' in test) url.host = test.host;
-    if ('hostname' in test) url.hostname = test.hostname;
-    if ('port' in test) url.port = test.port;
-    if ('pathname' in test) url.pathname = test.pathname;
-    if ('search' in test) url.search = test.search;
-    if ('hash' in test) url.hash = test.hash;
+    if ("href" in test) url.href = test.href;
+    if ("protocol" in test) url.protocol = test.protocol;
+    if ("username" in test && test.username) url.username = test.username;
+    if ("password" in test && test.password) url.password = test.password;
+    if ("host" in test) url.host = test.host;
+    if ("hostname" in test) url.hostname = test.hostname;
+    if ("port" in test) url.port = test.port;
+    if ("pathname" in test) url.pathname = test.pathname;
+    if ("search" in test) url.search = test.search;
+    if ("hash" in test) url.hash = test.hash;
 
-    if ('href' in test) is(url.href, test.href, "href");
-    if ('origin' in test) is(url.origin, test.origin, "origin");
-    if ('protocol' in test) is(url.protocol, test.protocol, "protocol");
-    if ('username' in test) is(url.username, test.username, "username");
-    if ('password' in test) is(url.password, test.password, "password");
-    if ('host' in test) is(url.host, test.host, "host");
-    if ('hostname' in test) is(test.hostname, url.hostname, "hostname");
-    if ('port' in test) is(test.port, url.port, "port");
-    if ('pathname' in test) is(test.pathname, url.pathname, "pathname");
-    if ('search' in test) is(test.search, url.search, "search");
-    if ('hash' in test) is(test.hash, url.hash, "hash");
+    if ("href" in test) is(url.href, test.href, "href");
+    if ("origin" in test) is(url.origin, test.origin, "origin");
+    if ("protocol" in test) is(url.protocol, test.protocol, "protocol");
+    if ("username" in test) is(url.username, test.username, "username");
+    if ("password" in test) is(url.password, test.password, "password");
+    if ("host" in test) is(url.host, test.host, "host");
+    if ("hostname" in test) is(test.hostname, url.hostname, "hostname");
+    if ("port" in test) is(test.port, url.port, "port");
+    if ("pathname" in test) is(test.pathname, url.pathname, "pathname");
+    if ("search" in test) is(test.search, url.search, "search");
+    if ("hash" in test) is(test.hash, url.hash, "hash");
 
-    if ('href' in test) is (test.href, url + '', 'stringify works');
+    if ("href" in test) is(test.href, url + "", "stringify works");
   }
 
   </script>
 
   <script>
     /** Test for Bug 991471 **/
     var url = new URL("http://localhost/");
     url.hostname = "";
@@ -369,42 +369,42 @@
 
     url = new URL("http://localhost/");
     // This should silently fail since it's missing the brackets
     url.hostname = "2001::1";
     is(url.hostname, "localhost", "Setting bad hostname fails");
   </script>
 
   <script>
-    var blob = new Blob(['a']);
+    var blob = new Blob(["a"]);
     var url = URL.createObjectURL(blob);
 
     var u = new URL(url);
-    is(u.origin, 'http://mochi.test:8888', "The URL generated from a blob URI has an origin");
+    is(u.origin, "http://mochi.test:8888", "The URL generated from a blob URI has an origin");
   </script>
 
   <script>
-    var blob = new Blob(['a']);
+    var blob = new Blob(["a"]);
     var url = URL.createObjectURL(blob);
 
-    var a = document.createElement('A');
+    var a = document.createElement("A");
     a.href = url;
-    is(a.origin, 'http://mochi.test:8888', "The 'a' element has the correct origin");
+    is(a.origin, "http://mochi.test:8888", "The 'a' element has the correct origin");
   </script>
 
   <script>
-    var blob = new Blob(['a']);
+    var blob = new Blob(["a"]);
     var url = URL.createObjectURL(blob);
     URL.revokeObjectURL(url);
     URL.revokeObjectURL(url);
     ok(true, "Calling revokeObjectURL twice should be ok");
   </script>
 
   <script>
-    URL.revokeObjectURL('blob:something');
+    URL.revokeObjectURL("blob:something");
     ok(true, "This should not throw.");
   </script>
 
   <script>
     var base = new URL("http:\\\\test.com\\path/to\\file?query\\backslash#hash\\");
     is(base.href, "http://test.com/path/to/file?query\\backslash#hash\\");
 
     var url = new URL("..\\", base);
@@ -478,14 +478,14 @@
 
     // we don't implement a spec-compliant parser yet.
     // make sure we are bug compatible with existing implementations.
     url = new URL("data:text/html,<a href=\"http://example.org/?q\">Link</a>");
     is(url.href, "data:text/html,<a href=\"http://example.org/?q\">Link</a>");
   </script>
 
   <script>
-    var u = new URL('http://www.example.org');
-    is(u.toJSON(), 'http://www.example.org/', "URL.toJSON()");
+    var u = new URL("http://www.example.org");
+    is(u.toJSON(), "http://www.example.org/", "URL.toJSON()");
     is(JSON.stringify(u), "\"http://www.example.org/\"", "JSON.stringify(u) works");
   </script>
 </body>
 </html>
--- a/dom/url/tests/test_urlExceptions.html
+++ b/dom/url/tests/test_urlExceptions.html
@@ -16,42 +16,42 @@ https://bugzilla.mozilla.org/show_bug.cg
   <iframe name="x" id="x"></iframe>
   <iframe name="y" id="y"></iframe>
 </div>
 <pre id="test">
 </pre>
   <script type="application/javascript">
 
   // URL.href throws
-  var url = new URL('http://www.example.com');
+  var url = new URL("http://www.example.com");
   ok(url, "URL created");
 
   try {
-    url.href = '42';
+    url.href = "42";
     ok(false, "url.href = 42 should throw");
-  } catch(e) {
+  } catch (e) {
     ok(true, "url.href = 42 should throw");
     ok(e instanceof TypeError, "error type typeError");
   }
 
-  url.href = 'http://www.example.org';
+  url.href = "http://www.example.org";
   ok(true, "url.href should not throw");
 
   try {
-    new URL('42');
+    new URL("42");
     ok(false, "new URL(42) should throw");
-  } catch(e) {
+  } catch (e) {
     ok(true, "new URL(42) should throw");
     ok(e instanceof TypeError, "error type typeError");
   }
 
   try {
-    new URL('http://www.example.com', '42');
+    new URL("http://www.example.com", "42");
     ok(false, "new URL(something, 42) should throw");
-  } catch(e) {
+  } catch (e) {
     ok(true, "new URL(something, 42) should throw");
     ok(e instanceof TypeError, "error type typeError");
   }
 
   </script>
 </body>
 </html>
 
--- a/dom/url/tests/test_urlSearchParams_sorting.html
+++ b/dom/url/tests/test_urlSearchParams_sorting.html
@@ -6,58 +6,58 @@
   <title>Test for URLSearchParams.sort()</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <script type="application/javascript">
 
 function compareArray(a, b) {
-  is (a.length, b.length, "Length matches");
+  is(a.length, b.length, "Length matches");
   for (let i = 0; i < a.length; ++i) {
-    is (a[i], b[i], "Values " + i + " match");
+    is(a[i], b[i], "Values " + i + " match");
   }
 }
 
 [
   {
     "input": "z=b&a=b&z=a&a=a",
-    "output": [["a", "b"], ["a", "a"], ["z", "b"], ["z", "a"]]
+    "output": [["a", "b"], ["a", "a"], ["z", "b"], ["z", "a"]],
   },
   {
     "input": "\uFFFD=x&\uFFFC&\uFFFD=a",
-    "output": [["\uFFFC", ""], ["\uFFFD", "x"], ["\uFFFD", "a"]]
+    "output": [["\uFFFC", ""], ["\uFFFD", "x"], ["\uFFFD", "a"]],
   },
   {
     "input": "ffi&🌈", // 🌈 > code point, but < code unit because two code units
-    "output": [["🌈", ""], ["ffi", ""]]
+    "output": [["🌈", ""], ["ffi", ""]],
   },
   {
     "input": "é&e\uFFFD&e\u0301",
-    "output": [["e\u0301", ""], ["e\uFFFD", ""], ["é", ""]]
+    "output": [["e\u0301", ""], ["e\uFFFD", ""], ["é", ""]],
   },
   {
     "input": "z=z&a=a&z=y&a=b&z=x&a=c&z=w&a=d&z=v&a=e&z=u&a=f&z=t&a=g",
-    "output": [["a", "a"], ["a", "b"], ["a", "c"], ["a", "d"], ["a", "e"], ["a", "f"], ["a", "g"], ["z", "z"], ["z", "y"], ["z", "x"], ["z", "w"], ["z", "v"], ["z", "u"], ["z", "t"]]
-  }
+    "output": [["a", "a"], ["a", "b"], ["a", "c"], ["a", "d"], ["a", "e"], ["a", "f"], ["a", "g"], ["z", "z"], ["z", "y"], ["z", "x"], ["z", "w"], ["z", "v"], ["z", "u"], ["z", "t"]],
+  },
 ].forEach((val) => {
   info("Run test: " + val.toSource() + "\n");
 
   let params = new URLSearchParams(val.input);
   params.sort();
 
   let i = 0;
-  for(let param of params) {
-    compareArray(param, val.output[i++])
+  for (let param of params) {
+    compareArray(param, val.output[i++]);
   }
 
-  let url = new URL("?" + val.input, "https://example/")
+  let url = new URL("?" + val.input, "https://example/");
   url.searchParams.sort();
   params = new URLSearchParams(url.search);
   i = 0;
-  for(let param of params) {
-    compareArray(param, val.output[i++])
+  for (let param of params) {
+    compareArray(param, val.output[i++]);
   }
-})
+});
 
 </script>
 </body>
 </html>
--- a/dom/url/tests/test_urlSearchParams_utf8.html
+++ b/dom/url/tests/test_urlSearchParams_utf8.html
@@ -21,19 +21,19 @@ https://bugzilla.mozilla.org/show_bug.cg
 </pre>
 <a href="http://www.example.net?a=b&c=d" id="anchor">foobar</a>
 <area href="http://www.example.net?a=b&c=d" id="area">foobar</area>
 <script type="application/javascript">
 
   /** Test for Bug 1032511 **/
   var a = new URLSearchParams("%e2");
   ok(a, "a exists");
-  is(a.toString(), '%EF%BF%BD=', "The value should be here.");
+  is(a.toString(), "%EF%BF%BD=", "The value should be here.");
 
   a = new URLSearchParams("a%e2");
-  is(a.toString(), 'a%EF%BF%BD=', "The value should be here.");
+  is(a.toString(), "a%EF%BF%BD=", "The value should be here.");
 
   a = new URLSearchParams("a%e2b");
-  is(a.toString(), 'a%EF%BF%BDb=', "The value should be here.");
+  is(a.toString(), "a%EF%BF%BDb=", "The value should be here.");
 
 </script>
 </body>
 </html>
--- a/dom/url/tests/test_url_data.html
+++ b/dom/url/tests/test_url_data.html
@@ -9,22 +9,22 @@
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1018682">Mozilla Bug 1018682</a>
 
 <script type="application/javascript">
 
 var base = new URL("data:text/plain,");
 
 base.protocol = "chrome:";
-is(base.protocol, 'data:', "The protocol should not change from data to chrome.");
+is(base.protocol, "data:", "The protocol should not change from data to chrome.");
 
 try {
   var relative = new URL("a", base);
   ok(false, "Relative URL from a data:text/plain should not work.");
-} catch(e) {
+} catch (e) {
   ok(true, "Relative URL from a data:text/plain should not work.");
 }
 
 base.protocol = "http:";
 ok(true, "Protocol: http changed");
 is(base.href, "http://text/plain,", "Base URL is correct");
 
 var relative = new URL("a", base);
--- a/dom/url/tests/test_url_empty_port.html
+++ b/dom/url/tests/test_url_empty_port.html
@@ -18,36 +18,36 @@ https://bugzilla.mozilla.org/show_bug.cg
   <iframe name="y" id="y"></iframe>
 </div>
 <pre id="test">
 </pre>
   <a id="link" href="http://www.example.com:8080">foobar</a>
   <area id="area" href="http://www.example.com:8080" />
   <script type="application/javascript">
 
-  var url = new URL('http://www.example.com:8080');
-  is(url.port, '8080', 'URL.port is 8080');
-  url.port = '';
-  is(url.port, '', 'URL.port is \'\'');
+  var url = new URL("http://www.example.com:8080");
+  is(url.port, "8080", "URL.port is 8080");
+  url.port = "";
+  is(url.port, "", "URL.port is ''");
   url.port = 0;
-  is(url.port, '0', 'URL.port is 0');
+  is(url.port, "0", "URL.port is 0");
 
   var link = document.getElementById("link");
-  is(link.port, '8080', 'URL.port is 8080');
-  link.port = '';
-  is(link.href, 'http://www.example.com/', "link.href matches");
-  is(link.port, '', 'URL.port is \'\'');
+  is(link.port, "8080", "URL.port is 8080");
+  link.port = "";
+  is(link.href, "http://www.example.com/", "link.href matches");
+  is(link.port, "", "URL.port is ''");
   link.port = 0;
-  is(link.href, 'http://www.example.com:0/', "link.href matches");
-  is(link.port, '0', 'URL.port is 0');
+  is(link.href, "http://www.example.com:0/", "link.href matches");
+  is(link.port, "0", "URL.port is 0");
 
   var area = document.getElementById("area");
-  is(area.port, '8080', 'URL.port is 8080');
-  area.port = '';
-  is(area.href, 'http://www.example.com/', "area.href matches");
-  is(area.port, '', 'URL.port is \'\'');
+  is(area.port, "8080", "URL.port is 8080");
+  area.port = "";
+  is(area.href, "http://www.example.com/", "area.href matches");
+  is(area.port, "", "URL.port is ''");
   area.port = 0;
-  is(area.href, 'http://www.example.com:0/', "area.href matches");
-  is(area.port, '0', 'URL.port is 0');
+  is(area.href, "http://www.example.com:0/", "area.href matches");
+  is(area.port, "0", "URL.port is 0");
 
   </script>
 </body>
 </html>
--- a/dom/url/tests/test_url_malformedHost.html
+++ b/dom/url/tests/test_url_malformedHost.html
@@ -19,30 +19,30 @@ https://bugzilla.mozilla.org/show_bug.cg
 </div>
 <pre id="test">
 </pre>
   <a id="link" href="http://www.example.com:8080">foobar</a>
   <area id="area" href="http://www.example.com:8080" />
   <script type="application/javascript">
 
   var tests = [
-    { host: '?', expected: 'www.example.com' },
-    { host: 'what?' , expected: 'what' },
-    { host: 'so what' , expected: 'www.example.com' },
-    { host: 'aa#bb' , expected: 'aa' },
-    { host: 'a/b' , expected: 'a' },
-    { host: 'a\\b', expected: 'a' },
-    { host: '[2001::1]#bla:10', expected: '[2001::1]'}
+    { host: "?", expected: "www.example.com" },
+    { host: "what?", expected: "what" },
+    { host: "so what", expected: "www.example.com" },
+    { host: "aa#bb", expected: "aa" },
+    { host: "a/b", expected: "a" },
+    { host: "a\\b", expected: "a" },
+    { host: "[2001::1]#bla:10", expected: "[2001::1]"},
   ];
 
   for (var i = 0; i < tests.length; ++i) {
-    var url = new URL('http://www.example.com');
+    var url = new URL("http://www.example.com");
     url.host = tests[i].host;
-    is (url.host, tests[i].expected, "URL.host is: " + url.host);
+    is(url.host, tests[i].expected, "URL.host is: " + url.host);
 
-    url = new URL('http://www.example.com');
+    url = new URL("http://www.example.com");
     url.hostname = tests[i].host;
-    is (url.hostname, tests[i].expected, "URL.hostname is: " + url.host);
+    is(url.hostname, tests[i].expected, "URL.hostname is: " + url.host);
   }
 
   </script>
 </body>
 </html>
--- a/dom/url/tests/test_urlutils_stringify.html
+++ b/dom/url/tests/test_urlutils_stringify.html
@@ -18,21 +18,21 @@ https://bugzilla.mozilla.org/show_bug.cg
   <iframe name="y" id="y"></iframe>
 </div>
 <pre id="test">
 </pre>
   <a id="link" href="http://www.example.com:8080">foobar</a>
   <area id="area" href="http://www.example.com:8080" />
   <script type="application/javascript">
 
-  var url = new URL('http://www.example.com:8080');
-  is(url + '', 'http://www.example.com:8080/', 'URL stringify');
+  var url = new URL("http://www.example.com:8080");
+  is(url + "", "http://www.example.com:8080/", "URL stringify");
 
   var link = document.getElementById("link");
-  is(link + '', 'http://www.example.com:8080/', 'Anchor stringify');
+  is(link + "", "http://www.example.com:8080/", "Anchor stringify");
 
   var area = document.getElementById("area");
-  is(area + '', 'http://www.example.com:8080/', 'Area stringify');
+  is(area + "", "http://www.example.com:8080/", "Area stringify");
 
-  is((location + '').indexOf('http://mochi.test:8888/tests/dom/url/tests/test_urlutils_stringify.html'), 0, 'Location stringify');
+  is((location + "").indexOf("http://mochi.test:8888/tests/dom/url/tests/test_urlutils_stringify.html"), 0, "Location stringify");
   </script>
 </body>
 </html>
--- a/dom/url/tests/test_worker_url.html
+++ b/dom/url/tests/test_worker_url.html
@@ -15,41 +15,41 @@
 <pre id="test"></pre>
 <script class="testbody" type="text/javascript">
 
   var worker = new Worker("url_worker.js");
 
   worker.onmessage = function(event) {
     is(event.target, worker, "Correct worker");
 
-    if (event.data.type == 'finish') {
+    if (event.data.type == "finish") {
       runTest();
-    } else if (event.data.type == 'status') {
+    } else if (event.data.type == "status") {
       ok(event.data.status, event.data.msg);
-    } else if (event.data.type == 'url') {
+    } else if (event.data.type == "url") {
       var xhr = new XMLHttpRequest();
-      xhr.open('GET', event.data.url, false);
+      xhr.open("GET", event.data.url, false);
       xhr.onreadystatechange = function() {
         if (xhr.readyState == 4) {
           ok(true, "Blob readable!");
         }
-      }
+      };
       xhr.send();
     }
   };
 
   worker.onerror = function(event) {
     is(event.target, worker, "Correct worker");
     ok(false, "Worker had an error: " + event.message);
     SimpleTest.finish();
   };
 
   var tests = [
     function() { worker.postMessage(0); },
-    function() { worker.postMessage(1); }
+    function() { worker.postMessage(1); },
   ];
 
   function runTest() {
     if (!tests.length) {
       SimpleTest.finish();
       return;
     }
 
--- a/dom/url/tests/test_worker_urlApi.html
+++ b/dom/url/tests/test_worker_urlApi.html
@@ -15,19 +15,19 @@
 <pre id="test"></pre>
 <script class="testbody" type="text/javascript">
 
   var worker = new Worker("urlApi_worker.js");
 
   worker.onmessage = function(event) {
     is(event.target, worker);
 
-    if (event.data.type == 'finish') {
+    if (event.data.type == "finish") {
       SimpleTest.finish();
-    } else if (event.data.type == 'status') {
+    } else if (event.data.type == "status") {
       ok(event.data.status, event.data.msg);
     }
   };
 
   worker.onerror = function(event) {
     is(event.target, worker);
     ok(false, "Worker had an error: " + event.data);
     SimpleTest.finish();
--- a/dom/url/tests/test_worker_urlSearchParams.html
+++ b/dom/url/tests/test_worker_urlSearchParams.html
@@ -15,19 +15,19 @@
 <pre id="test"></pre>
 <script class="testbody" type="text/javascript">
 
   var worker = new Worker("urlSearchParams_worker.js");
 
   worker.onmessage = function(event) {
     is(event.target, worker);
 
-    if (event.data.type == 'finish') {
+    if (event.data.type == "finish") {
       SimpleTest.finish();
-    } else if (event.data.type == 'status') {
+    } else if (event.data.type == "status") {
       ok(event.data.status, event.data.msg);
     }
   };
 
   worker.onerror = function(event) {
     is(event.target, worker);
     ok(false, "Worker had an error: " + event.message);
     SimpleTest.finish();
--- a/dom/url/tests/test_worker_url_exceptions.html
+++ b/dom/url/tests/test_worker_url_exceptions.html
@@ -15,19 +15,19 @@
 <pre id="test"></pre>
 <script class="testbody" type="text/javascript">
 
   var worker = new Worker("url_exceptions_worker.js");
 
   worker.onmessage = function(event) {
     is(event.target, worker);
 
-    if (event.data.type == 'finish') {
+    if (event.data.type == "finish") {
       SimpleTest.finish();
-    } else if (event.data.type == 'status') {
+    } else if (event.data.type == "status") {
       ok(event.data.status, event.data.msg);
     }
   };
 
   worker.onerror = function(event) {
     is(event.target, worker);
     ok(false, "Worker had an error: " + event.message);
     SimpleTest.finish();
--- a/dom/url/tests/urlApi_worker.js
+++ b/dom/url/tests/urlApi_worker.js
@@ -1,272 +1,272 @@
 function ok(a, msg) {
   dump("OK: " + !!a + "  =>  " + a + " " + msg + "\n");
-  postMessage({type: 'status', status: !!a, msg: a + ": " + msg });
+  postMessage({type: "status", status: !!a, msg: a + ": " + msg });
 }
 
 function is(a, b, msg) {
-  dump("IS: " + (a===b) + "  =>  " + a + " | " + b + " " + msg + "\n");
-  postMessage({type: 'status', status: a === b, msg: a + " === " + b + ": " + msg });
+  dump("IS: " + (a === b) + "  =>  " + a + " | " + b + " " + msg + "\n");
+  postMessage({type: "status", status: a === b, msg: a + " === " + b + ": " + msg });
 }
 
 onmessage = function() {
   status = false;
   try {
     if ((URL instanceof Object)) {
       status = true;
     }
-  } catch(e) {
+  } catch (e) {
   }
 
   var tests = [
-    { url: 'http://www.abc.com',
+    { url: "http://www.abc.com",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/',
-      origin: 'http://www.abc.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/',
-      search: '',
-      hash: ''
+      href: "http://www.abc.com/",
+      origin: "http://www.abc.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/",
+      search: "",
+      hash: "",
     },
-    { url: 'ftp://auser:apw@www.abc.com',
+    { url: "ftp://auser:apw@www.abc.com",
       base: undefined,
       error: false,
-      href: 'ftp://auser:apw@www.abc.com/',
-      origin: 'ftp://www.abc.com',
-      protocol: 'ftp:',
-      username: 'auser',
-      password: 'apw',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/',
-      search: '',
-      hash: ''
+      href: "ftp://auser:apw@www.abc.com/",
+      origin: "ftp://www.abc.com",
+      protocol: "ftp:",
+      username: "auser",
+      password: "apw",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/",
+      search: "",
+      hash: "",
     },
-    { url: 'http://www.abc.com:90/apath/',
+    { url: "http://www.abc.com:90/apath/",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com:90/apath/',
-      origin: 'http://www.abc.com:90',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com:90',
-      hostname: 'www.abc.com',
-      port: '90',
-      pathname: '/apath/',
-      search: '',
-      hash: ''
+      href: "http://www.abc.com:90/apath/",
+      origin: "http://www.abc.com:90",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com:90",
+      hostname: "www.abc.com",
+      port: "90",
+      pathname: "/apath/",
+      search: "",
+      hash: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt#ahash',
+    { url: "http://www.abc.com/apath/afile.txt#ahash",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt#ahash',
-      origin: 'http://www.abc.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'www.abc.com',
-      hostname: 'www.abc.com',
-      port: '',
-      pathname: '/apath/afile.txt',
-      search: '',
-      hash: '#ahash'
+      href: "http://www.abc.com/apath/afile.txt#ahash",
+      origin: "http://www.abc.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "www.abc.com",
+      hostname: "www.abc.com",
+      port: "",
+      pathname: "/apath/afile.txt",
+      search: "",
+      hash: "#ahash",
     },
-    { url: 'http://example.com/?test#hash',
+    { url: "http://example.com/?test#hash",
       base: undefined,
       error: false,
-      href: 'http://example.com/?test#hash',
-      origin: 'http://example.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'example.com',
-      hostname: 'example.com',
-      port: '',
-      pathname: '/',
-      search: '?test',
-      hash: '#hash'
+      href: "http://example.com/?test#hash",
+      origin: "http://example.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "example.com",
+      hostname: "example.com",
+      port: "",
+      pathname: "/",
+      search: "?test",
+      hash: "#hash",
     },
-    { url: 'http://example.com/?test',
+    { url: "http://example.com/?test",
       base: undefined,
       error: false,
-      href: 'http://example.com/?test',
-      origin: 'http://example.com',
-      protocol: 'http:',
-      username: '',
-      password: '',
-      host: 'example.com',
-      hostname: 'example.com',
-      port: '',
-      pathname: '/',
-      search: '?test',
-      hash: ''
+      href: "http://example.com/?test",
+      origin: "http://example.com",
+      protocol: "http:",
+      username: "",
+      password: "",
+      host: "example.com",
+      hostname: "example.com",
+      port: "",
+      pathname: "/",
+      search: "?test",
+      hash: "",
     },
-    { url: 'http://example.com/carrot#question%3f',
+    { url: "http://example.com/carrot#question%3f",
       base: undefined,
       error: false,
-      hash: '#question%3f'
+      hash: "#question%3f",
     },
-    { url: 'https://example.com:4443?',
+    { url: "https://example.com:4443?",
       base: undefined,
       error: false,
-      protocol: 'https:',
-      port: '4443',
-      pathname: '/',
-      hash: '',
-      search: ''
+      protocol: "https:",
+      port: "4443",
+      pathname: "/",
+      hash: "",
+      search: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt#ahash?asearch',
+    { url: "http://www.abc.com/apath/afile.txt#ahash?asearch",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt#ahash?asearch',
-      protocol: 'http:',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash?asearch',
-      search: ''
+      href: "http://www.abc.com/apath/afile.txt#ahash?asearch",
+      protocol: "http:",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash?asearch",
+      search: "",
     },
-    { url: 'http://www.abc.com/apath/afile.txt?asearch#ahash',
+    { url: "http://www.abc.com/apath/afile.txt?asearch#ahash",
       base: undefined,
       error: false,
-      href: 'http://www.abc.com/apath/afile.txt?asearch#ahash',
-      protocol: 'http:',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: '?asearch'
+      href: "http://www.abc.com/apath/afile.txt?asearch#ahash",
+      protocol: "http:",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "?asearch",
     },
-    { url: 'http://abc.com/apath/afile.txt?#ahash',
+    { url: "http://abc.com/apath/afile.txt?#ahash",
       base: undefined,
       error: false,
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: ''
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "",
     },
-    { url: 'http://auser:apassword@www.abc.com:90/apath/afile.txt?asearch#ahash',
+    { url: "http://auser:apassword@www.abc.com:90/apath/afile.txt?asearch#ahash",
       base: undefined,
       error: false,
-      protocol: 'http:',
-      username: 'auser',
-      password: 'apassword',
-      host: 'www.abc.com:90',
-      hostname: 'www.abc.com',
-      port: '90',
-      pathname: '/apath/afile.txt',
-      hash: '#ahash',
-      search: '?asearch',
-      origin: 'http://www.abc.com:90'
+      protocol: "http:",
+      username: "auser",
+      password: "apassword",
+      host: "www.abc.com:90",
+      hostname: "www.abc.com",
+      port: "90",
+      pathname: "/apath/afile.txt",
+      hash: "#ahash",
+      search: "?asearch",
+      origin: "http://www.abc.com:90",
     },
 
-    { url: '/foo#bar',
-      base: 'www.test.org',
+    { url: "/foo#bar",
+      base: "www.test.org",
       error: true,
     },
-    { url: '/foo#bar',
+    { url: "/foo#bar",
       base: null,
       error: true,
     },
-    { url: '/foo#bar',
+    { url: "/foo#bar",
       base: 42,
       error: true,
     },
-    { url: 'ftp://ftp.something.net',
+    { url: "ftp://ftp.something.net",
       base: undefined,
       error: false,
-      protocol: 'ftp:',
+      protocol: "ftp:",
     },
-    { url: 'file:///tmp/file',
+    { url: "file:///tmp/file",
       base: undefined,
       error: false,
-      protocol: 'file:',
+      protocol: "file:",
     },
-    { url: 'gopher://gopher.something.net',
+    { url: "gopher://gopher.something.net",
       base: undefined,
       error: false,
-      protocol: 'gopher:',
+      protocol: "gopher:",
     },
-    { url: 'ws://ws.something.net',
+    { url: "ws://ws.something.net",
       base: undefined,
       error: false,
-      protocol: 'ws:',
+      protocol: "ws:",
     },
-    { url: 'wss://ws.something.net',
+    { url: "wss://ws.something.net",
       base: undefined,
       error: false,
-      protocol: 'wss:',
+      protocol: "wss:",
     },
-    { url: 'foo://foo.something.net',
+    { url: "foo://foo.something.net",
       base: undefined,
       error: false,
-      protocol: 'foo:',
+      protocol: "foo:",
     },
   ];
 
-  while(tests.length) {
+  while (tests.length) {
     var test = tests.shift();
 
     var error = false;
     var url;
     try {
       if (test.base) {
         url = new URL(test.url, test.base);
       } else {
         url = new URL(test.url);
       }
-    } catch(e) {
+    } catch (e) {
       error = true;
     }
 
     is(test.error, error, "Error creating URL");
     if (test.error) {
       continue;
     }
 
-    if ('href' in test) is(url.href, test.href, "href");
-    if ('origin' in test) is(url.origin, test.origin, "origin");
-    if ('protocol' in test) is(url.protocol, test.protocol, "protocol");
-    if ('username' in test) is(url.username, test.username, "username");
-    if ('password' in test) is(url.password, test.password, "password");
-    if ('host' in test) is(url.host, test.host, "host");
-    if ('hostname' in test) is(url.hostname, test.hostname, "hostname");
-    if ('port' in test) is(url.port, test.port, "port");
-    if ('pathname' in test) is(url.pathname, test.pathname, "pathname");
-    if ('search' in test) is(url.search, test.search, "search");
-    if ('hash' in test) is(url.hash, test.hash, "hash");
+    if ("href" in test) is(url.href, test.href, "href");
+    if ("origin" in test) is(url.origin, test.origin, "origin");
+    if ("protocol" in test) is(url.protocol, test.protocol, "protocol");
+    if ("username" in test) is(url.username, test.username, "username");
+    if ("password" in test) is(url.password, test.password, "password");
+    if ("host" in test) is(url.host, test.host, "host");
+    if ("hostname" in test) is(url.hostname, test.hostname, "hostname");
+    if ("port" in test) is(url.port, test.port, "port");
+    if ("pathname" in test) is(url.pathname, test.pathname, "pathname");
+    if ("search" in test) is(url.search, test.search, "search");
+    if ("hash" in test) is(url.hash, test.hash, "hash");
 
-    url = new URL('https://www.example.net/what#foo?bar');
+    url = new URL("https://www.example.net/what#foo?bar");
     ok(url, "Url exists!");
 
-    if ('href' in test) url.href = test.href;
-    if ('protocol' in test) url.protocol = test.protocol;
-    if ('username' in test && test.username) url.username = test.username;
-    if ('password' in test && test.password) url.password = test.password;
-    if ('host' in test) url.host = test.host;
-    if ('hostname' in test) url.hostname = test.hostname;
-    if ('port' in test) url.port = test.port;
-    if ('pathname' in test) url.pathname = test.pathname;
-    if ('search' in test) url.search = test.search;
-    if ('hash' in test) url.hash = test.hash;
+    if ("href" in test) url.href = test.href;
+    if ("protocol" in test) url.protocol = test.protocol;
+    if ("username" in test && test.username) url.username = test.username;
+    if ("password" in test && test.password) url.password = test.password;
+    if ("host" in test) url.host = test.host;
+    if ("hostname" in test) url.hostname = test.hostname;
+    if ("port" in test) url.port = test.port;
+    if ("pathname" in test) url.pathname = test.pathname;
+    if ("search" in test) url.search = test.search;
+    if ("hash" in test) url.hash = test.hash;
 
-    if ('href' in test) is(url.href, test.href, "href");
-    if ('origin' in test) is(url.origin, test.origin, "origin");
-    if ('protocol' in test) is(url.protocol, test.protocol, "protocol");
-    if ('username' in test) is(url.username, test.username, "username");
-    if ('password' in test) is(url.password, test.password, "password");
-    if ('host' in test) is(url.host, test.host, "host");
-    if ('hostname' in test) is(test.hostname, url.hostname, "hostname");
-    if ('port' in test) is(test.port, url.port, "port");
-    if ('pathname' in test) is(test.pathname, url.pathname, "pathname");
-    if ('search' in test) is(test.search, url.search, "search");
-    if ('hash' in test) is(test.hash, url.hash, "hash");
+    if ("href" in test) is(url.href, test.href, "href");
+    if ("origin" in test) is(url.origin, test.origin, "origin");
+    if ("protocol" in test) is(url.protocol, test.protocol, "protocol");
+    if ("username" in test) is(url.username, test.username, "username");
+    if ("password" in test) is(url.password, test.password, "password");
+    if ("host" in test) is(url.host, test.host, "host");
+    if ("hostname" in test) is(test.hostname, url.hostname, "hostname");
+    if ("port" in test) is(test.port, url.port, "port");
+    if ("pathname" in test) is(test.pathname, url.pathname, "pathname");
+    if ("search" in test) is(test.search, url.search, "search");
+    if ("hash" in test) is(test.hash, url.hash, "hash");
 
-    if ('href' in test) is (test.href, url + '', 'stringify works');
+    if ("href" in test) is(test.href, url + "", "stringify works");
   }
 
-  postMessage({type: 'finish' });
-}
+  postMessage({type: "finish" });
+};
 
--- a/dom/url/tests/urlSearchParams_commons.js
+++ b/dom/url/tests/urlSearchParams_commons.js
@@ -1,95 +1,95 @@
 function testSimpleURLSearchParams() {
   var u = new URLSearchParams();
   ok(u, "URLSearchParams created");
-  is(u.has('foo'), false, 'URLSearchParams.has(foo)');
-  is(u.get('foo'), null, 'URLSearchParams.get(foo)');
-  is(u.getAll('foo').length, 0, 'URLSearchParams.getAll(foo)');
+  is(u.has("foo"), false, "URLSearchParams.has(foo)");
+  is(u.get("foo"), null, "URLSearchParams.get(foo)");
+  is(u.getAll("foo").length, 0, "URLSearchParams.getAll(foo)");
 
-  u.append('foo', 'bar');
-  is(u.has('foo'), true, 'URLSearchParams.has(foo)');
-  is(u.get('foo'), 'bar', 'URLSearchParams.get(foo)');
-  is(u.getAll('foo').length, 1, 'URLSearchParams.getAll(foo)');
+  u.append("foo", "bar");
+  is(u.has("foo"), true, "URLSearchParams.has(foo)");
+  is(u.get("foo"), "bar", "URLSearchParams.get(foo)");
+  is(u.getAll("foo").length, 1, "URLSearchParams.getAll(foo)");
 
-  u.set('foo', 'bar2');
-  is(u.get('foo'), 'bar2', 'URLSearchParams.get(foo)');
-  is(u.getAll('foo').length, 1, 'URLSearchParams.getAll(foo)');
+  u.set("foo", "bar2");
+  is(u.get("foo"), "bar2", "URLSearchParams.get(foo)");
+  is(u.getAll("foo").length, 1, "URLSearchParams.getAll(foo)");
 
   is(u + "", "foo=bar2", "stringifier");
 
-  u.delete('foo');
+  u.delete("foo");
 
   runTest();
 }
 
 function testCopyURLSearchParams() {
   var u = new URLSearchParams();
   ok(u, "URLSearchParams created");
-  u.append('foo', 'bar');
+  u.append("foo", "bar");
 
   var uu = new URLSearchParams(u);
-  is(uu.get('foo'), 'bar', 'uu.get()');
+  is(uu.get("foo"), "bar", "uu.get()");
 
-  u.append('foo', 'bar2');
-  is(u.getAll('foo').length, 2, "u.getAll()");
-  is(uu.getAll('foo').length, 1, "uu.getAll()");
+  u.append("foo", "bar2");
+  is(u.getAll("foo").length, 2, "u.getAll()");
+  is(uu.getAll("foo").length, 1, "uu.getAll()");
 
   runTest();
 }
 
 function testURL() {
-  var url = new URL('http://www.example.net?a=b&c=d');
+  var url = new URL("http://www.example.net?a=b&c=d");
   ok(url.searchParams, "URL searchParams exists!");
-  ok(url.searchParams.has('a'), "URL.searchParams.has('a')");
-  is(url.searchParams.get('a'), 'b', "URL.searchParams.get('a')");
-  ok(url.searchParams.has('c'), "URL.searchParams.has('c')");
-  is(url.searchParams.get('c'), 'd', "URL.searchParams.get('c')");
+  ok(url.searchParams.has("a"), "URL.searchParams.has('a')");
+  is(url.searchParams.get("a"), "b", "URL.searchParams.get('a')");
+  ok(url.searchParams.has("c"), "URL.searchParams.has('c')");
+  is(url.searchParams.get("c"), "d", "URL.searchParams.get('c')");
 
-  url.searchParams.set('e', 'f');
-  ok(url.href.indexOf('e=f') != 1, 'URL right');
+  url.searchParams.set("e", "f");
+  ok(url.href.indexOf("e=f") != 1, "URL right");
 
 
-  url = new URL('mailto:a@b.com?subject=Hi');
+  url = new URL("mailto:a@b.com?subject=Hi");
   ok(url.searchParams, "URL searchParams exists!");
-  ok(url.searchParams.has('subject'), "Hi");
+  ok(url.searchParams.has("subject"), "Hi");
 
   runTest();
 }
 
 function testParserURLSearchParams() {
   var checks = [
-    { input: '', data: {} },
-    { input: 'a', data: { 'a' : [''] } },
-    { input: 'a=b', data: { 'a' : ['b'] } },
-    { input: 'a=', data: { 'a' : [''] } },
-    { input: '=b', data: { '' : ['b'] } },
-    { input: '&', data: {} },
-    { input: '&a', data: { 'a' : [''] } },
-    { input: 'a&', data: { 'a' : [''] } },
-    { input: 'a&a', data: { 'a' : ['', ''] } },
-    { input: 'a&b&c', data: { 'a' : [''], 'b' : [''], 'c' : [''] } },
-    { input: 'a=b&c=d', data: { 'a' : ['b'], 'c' : ['d'] } },
-    { input: 'a=b&c=d&', data: { 'a' : ['b'], 'c' : ['d'] } },
-    { input: '&&&a=b&&&&c=d&', data: { 'a' : ['b'], 'c' : ['d'] } },
-    { input: 'a=a&a=b&a=c', data: { 'a' : ['a', 'b', 'c'] } },
-    { input: 'a==a', data: { 'a' : ['=a'] } },
-    { input: 'a=a+b+c+d', data: { 'a' : ['a b c d'] } },
-    { input: '%=a', data: { '%' : ['a'] } },
-    { input: '%a=a', data: { '%a' : ['a'] } },
-    { input: '%a_=a', data: { '%a_' : ['a'] } },
-    { input: '%61=a', data: { 'a' : ['a'] } },
-    { input: '%=a', data: { '%' : ['a'] } },
-    { input: '%a=a', data: { '%a' : ['a'] } },
-    { input: '%a_=a', data: { '%a_' : ['a'] } },
-    { input: '%61=a', data: { 'a' : ['a'] } },
-    { input: '%61+%4d%4D=', data: { 'a MM' : [''] } },
-    { input: '?a=1', data: { 'a' : ['1'] } },
-    { input: '?', data: {} },
-    { input: '?=b', data: { '' : ['b'] } },
+    { input: "", data: {} },
+    { input: "a", data: { "a": [""] } },
+    { input: "a=b", data: { "a": ["b"] } },
+    { input: "a=", data: { "a": [""] } },
+    { input: "=b", data: { "": ["b"] } },
+    { input: "&", data: {} },
+    { input: "&a", data: { "a": [""] } },
+    { input: "a&", data: { "a": [""] } },
+    { input: "a&a", data: { "a": ["", ""] } },
+    { input: "a&b&c", data: { "a": [""], "b": [""], "c": [""] } },
+    { input: "a=b&c=d", data: { "a": ["b"], "c": ["d"] } },
+    { input: "a=b&c=d&", data: { "a": ["b"], "c": ["d"] } },
+    { input: "&&&a=b&&&&c=d&", data: { "a": ["b"], "c": ["d"] } },
+    { input: "a=a&a=b&a=c", data: { "a": ["a", "b", "c"] } },
+    { input: "a==a", data: { "a": ["=a"] } },
+    { input: "a=a+b+c+d", data: { "a": ["a b c d"] } },
+    { input: "%=a", data: { "%": ["a"] } },
+    { input: "%a=a", data: { "%a": ["a"] } },
+    { input: "%a_=a", data: { "%a_": ["a"] } },
+    { input: "%61=a", data: { "a": ["a"] } },
+    { input: "%=a", data: { "%": ["a"] } },
+    { input: "%a=a", data: { "%a": ["a"] } },
+    { input: "%a_=a", data: { "%a_": ["a"] } },
+    { input: "%61=a", data: { "a": ["a"] } },
+    { input: "%61+%4d%4D=", data: { "a MM": [""] } },
+    { input: "?a=1", data: { "a": ["1"] } },
+    { input: "?", data: {} },
+    { input: "?=b", data: { "": ["b"] } },
   ];
 
   for (var i = 0; i < checks.length; ++i) {
     var u = new URLSearchParams(checks[i].input);
 
     var count = 0;
     for (var key in checks[i].data) {
       ++count;
@@ -103,28 +103,28 @@ function testParserURLSearchParams() {
       }
     }
   }
 
   runTest();
 }
 
 function testEncoding() {
-  var encoding = [ [ '1', '1' ],
-                   [ 'a b', 'a+b' ],
-                   [ '<>', '%3C%3E' ],
-                   [ '\u0541', '%D5%81'] ];
+  var encoding = [ [ "1", "1" ],
+                   [ "a b", "a+b" ],
+                   [ "<>", "%3C%3E" ],
+                   [ "\u0541", "%D5%81"] ];
 
   for (var i = 0; i < encoding.length; ++i) {
-    var url = new URL('http://www.example.net');
-    url.searchParams.set('a', encoding[i][0]);
-    is(url.href, 'http://www.example.net/?a=' + encoding[i][1]);
+    var url = new URL("http://www.example.net");
+    url.searchParams.set("a", encoding[i][0]);
+    is(url.href, "http://www.example.net/?a=" + encoding[i][1]);
 
     var url2 = new URL(url.href);
-    is(url2.searchParams.get('a'), encoding[i][0], 'a is still there');
+    is(url2.searchParams.get("a"), encoding[i][0], "a is still there");
   }
 
   runTest();
 }
 
 function testCopyConstructor() {
   var url = new URL("http://example.com/");
   var p = url.searchParams;
@@ -137,97 +137,97 @@ function testCopyConstructor() {
      "Messing with URLSearchParams should affect URL");
 
   runTest();
 }
 
 function testOrdering() {
   var a = new URLSearchParams("a=1&a=2&b=3&c=4&c=5&a=6");
   is(a.toString(), "a=1&a=2&b=3&c=4&c=5&a=6", "Order is correct");
-  is(a.getAll('a').length, 3, "Correct length of getAll()");
+  is(a.getAll("a").length, 3, "Correct length of getAll()");
 
   var b = new URLSearchParams();
-  b.append('a', '1');
-  b.append('b', '2');
-  b.append('a', '3');
+  b.append("a", "1");
+  b.append("b", "2");
+  b.append("a", "3");
   is(b.toString(), "a=1&b=2&a=3", "Order is correct");
-  is(b.getAll('a').length, 2, "Correct length of getAll()");
+  is(b.getAll("a").length, 2, "Correct length of getAll()");
 
   runTest();
 }
 
 function testDelete() {
   var a = new URLSearchParams("a=1&a=2&b=3&c=4&c=5&a=6");
   is(a.toString(), "a=1&a=2&b=3&c=4&c=5&a=6", "Order is correct");
-  is(a.getAll('a').length, 3, "Correct length of getAll()");
+  is(a.getAll("a").length, 3, "Correct length of getAll()");
 
-  a.delete('a');
-  is(a.getAll('a').length, 0, "Correct length of getAll()");
+  a.delete("a");
+  is(a.getAll("a").length, 0, "Correct length of getAll()");
   is(a.toString(), "b=3&c=4&c=5", "Order is correct");
 
   runTest();
 }
 
 function testGetNULL() {
   var u = new URLSearchParams();
-  is(typeof u.get(''), "object", "typeof URL.searchParams.get('')");
-  is(u.get(''), null, "URL.searchParams.get('') should be null");
+  is(typeof u.get(""), "object", "typeof URL.searchParams.get('')");
+  is(u.get(""), null, "URL.searchParams.get('') should be null");
 
-  var url = new URL('http://www.example.net?a=b');
-  is(url.searchParams.get('b'), null, "URL.searchParams.get('b') should be null");
-  is(url.searchParams.get('a'), 'b', "URL.searchParams.get('a')");
+  var url = new URL("http://www.example.net?a=b");
+  is(url.searchParams.get("b"), null, "URL.searchParams.get('b') should be null");
+  is(url.searchParams.get("a"), "b", "URL.searchParams.get('a')");
 
   runTest();
 }
 
 function testSet() {
   var u = new URLSearchParams();
-  u.set('a','b');
-  u.set('e','c');
-  u.set('i','d');
-  u.set('o','f');
-  u.set('u','g');
+  u.set("a", "b");
+  u.set("e", "c");
+  u.set("i", "d");
+  u.set("o", "f");
+  u.set("u", "g");
 
-  is(u.get('a'), 'b', "URL.searchParams.get('a') should return b");
-  is(u.getAll('a').length, 1, "URLSearchParams.getAll('a').length should be 1");
+  is(u.get("a"), "b", "URL.searchParams.get('a') should return b");
+  is(u.getAll("a").length, 1, "URLSearchParams.getAll('a').length should be 1");
 
-  u.set('a','h1');
-  u.set('a','h2');
-  u.set('a','h3');
-  u.set('a','h4');
-  is(u.get('a'), 'h4', "URL.searchParams.get('a') should return h4");
-  is(u.getAll('a').length, 1, "URLSearchParams.getAll('a').length should be 1");
+  u.set("a", "h1");
+  u.set("a", "h2");
+  u.set("a", "h3");
+  u.set("a", "h4");
+  is(u.get("a"), "h4", "URL.searchParams.get('a') should return h4");
+  is(u.getAll("a").length, 1, "URLSearchParams.getAll('a').length should be 1");
 
-  is(u.get('e'), 'c', "URL.searchParams.get('e') should return c");
-  is(u.get('i'), 'd', "URL.searchParams.get('i') should return d");
-  is(u.get('o'), 'f', "URL.searchParams.get('o') should return f");
-  is(u.get('u'), 'g', "URL.searchParams.get('u') should return g");
+  is(u.get("e"), "c", "URL.searchParams.get('e') should return c");
+  is(u.get("i"), "d", "URL.searchParams.get('i') should return d");
+  is(u.get("o"), "f", "URL.searchParams.get('o') should return f");
+  is(u.get("u"), "g", "URL.searchParams.get('u') should return g");
 
-  is(u.getAll('e').length, 1, "URLSearchParams.getAll('e').length should be 1");
-  is(u.getAll('i').length, 1, "URLSearchParams.getAll('i').length should be 1");
-  is(u.getAll('o').length, 1, "URLSearchParams.getAll('o').length should be 1");
-  is(u.getAll('u').length, 1, "URLSearchParams.getAll('u').length should be 1");
+  is(u.getAll("e").length, 1, "URLSearchParams.getAll('e').length should be 1");
+  is(u.getAll("i").length, 1, "URLSearchParams.getAll('i').length should be 1");
+  is(u.getAll("o").length, 1, "URLSearchParams.getAll('o').length should be 1");
+  is(u.getAll("u").length, 1, "URLSearchParams.getAll('u').length should be 1");
 
   u = new URLSearchParams("name1=value1&name1=value2&name1=value3");
-  is(u.get('name1'), 'value1', "URL.searchParams.get('name1') should return value1");
-  is(u.getAll('name1').length, 3, "URLSearchParams.getAll('name1').length should be 3");
-  u.set('name1','firstPair');
-  is(u.get('name1'), 'firstPair', "URL.searchParams.get('name1') should return firstPair");
-  is(u.getAll('name1').length, 1, "URLSearchParams.getAll('name1').length should be 1");
+  is(u.get("name1"), "value1", "URL.searchParams.get('name1') should return value1");
+  is(u.getAll("name1").length, 3, "URLSearchParams.getAll('name1').length should be 3");
+  u.set("name1", "firstPair");
+  is(u.get("name1"), "firstPair", "URL.searchParams.get('name1') should return firstPair");
+  is(u.getAll("name1").length, 1, "URLSearchParams.getAll('name1').length should be 1");
 
   runTest();
 }
 
 function testIterable() {
   var u = new URLSearchParams();
-  u.set('1','2');
-  u.set('2','4');
-  u.set('3','6');
-  u.set('4','8');
-  u.set('5','10');
+  u.set("1", "2");
+  u.set("2", "4");
+  u.set("3", "6");
+  u.set("4", "8");
+  u.set("5", "10");
 
   var key_iter = u.keys();
   var value_iter = u.values();
   var entries_iter = u.entries();
   for (var i = 0; i < 5; ++i) {
     var v = i + 1;
     var key = key_iter.next();
     var value = value_iter.next();
@@ -250,21 +250,21 @@ function testIterable() {
   is(last.value, undefined, "Undefined is the last value");
 
   last = entries_iter.next();
   ok(last.done, "Nothing more to read.");
 
   key_iter = u.keys();
   key_iter.next();
   key_iter.next();
-  u.delete('1');
-  u.delete('2');
-  u.delete('3');
-  u.delete('4');
-  u.delete('5');
+  u.delete("1");
+  u.delete("2");
+  u.delete("3");
+  u.delete("4");
+  u.delete("5");
 
   last = key_iter.next();
   ok(last.done, "Nothing more to read.");
   is(last.value, undefined, "Undefined is the last key");
 
   runTest();
 }
 function testZeroHandling() {
@@ -277,39 +277,39 @@ function testZeroHandling() {
 
   runTest();
 }
 
 function testCTORs() {
   var a = new URLSearchParams("a=b");
   is(a.get("a"), "b", "CTOR with string");
 
-  var b = new URLSearchParams([['a', 'b'], ['c', 'd']]);
+  var b = new URLSearchParams([["a", "b"], ["c", "d"]]);
   is(b.get("a"), "b", "CTOR with sequence");
   is(b.get("c"), "d", "CTOR with sequence");
 
   ok(new URLSearchParams([]), "CTOR with empty sequence");
 
   let result;
   try {
     result = new URLSearchParams([[1]]);
-  } catch(e) {
+  } catch (e) {
     result = 42;
   }
 
   is(result, 42, "CTOR throws if the sequence doesn't contain exactly 2 elements");
 
   try {
-    result = new URLSearchParams([[1,2,3]]);
-  } catch(e) {
+    result = new URLSearchParams([[1, 2, 3]]);
+  } catch (e) {
     result = 43;
   }
   is(result, 43, "CTOR throws if the sequence doesn't contain exactly 2 elements");
 
-  var c = new URLSearchParams({ a: 'b', c: 42, d: null, e: [1,2,3], f: {a:42} });
-  is(c.get('a'), 'b', "CTOR with record<>");
-  is(c.get('c'), '42', "CTOR with record<>");
-  is(c.get('d'), 'null', "CTOR with record<>");
-  is(c.get('e'), [1,2,3].toString(), "CTOR with record<>");
-  is(c.get('f'), {a:42}.toString(), "CTOR with record<>");
+  var c = new URLSearchParams({ a: "b", c: 42, d: null, e: [1, 2, 3], f: {a: 42} });
+  is(c.get("a"), "b", "CTOR with record<>");
+  is(c.get("c"), "42", "CTOR with record<>");
+  is(c.get("d"), "null", "CTOR with record<>");
+  is(c.get("e"), [1, 2, 3].toString(), "CTOR with record<>");
+  is(c.get("f"), {a: 42}.toString(), "CTOR with record<>");
 
   runTest();
 }
--- a/dom/url/tests/urlSearchParams_worker.js
+++ b/dom/url/tests/urlSearchParams_worker.js
@@ -1,43 +1,43 @@
 importScripts("urlSearchParams_commons.js");
 
 function ok(a, msg) {
   dump("OK: " + !!a + "  =>  " + a + " " + msg + "\n");
-  postMessage({type: 'status', status: !!a, msg: a + ": " + msg });
+  postMessage({type: "status", status: !!a, msg: a + ": " + msg });
 }
 
 function is(a, b, msg) {
-  dump("IS: " + (a===b) + "  =>  " + a + " | " + b + " " + msg + "\n");
-  postMessage({type: 'status', status: a === b, msg: a + " === " + b + ": " + msg });
+  dump("IS: " + (a === b) + "  =>  " + a + " | " + b + " " + msg + "\n");
+  postMessage({type: "status", status: a === b, msg: a + " === " + b + ": " + msg });
 }
 
 var tests = [
   testSimpleURLSearchParams,
   testCopyURLSearchParams,
   testParserURLSearchParams,
   testURL,
   testEncoding,
   testCTORs,
 ];
 
 function runTest() {
   if (!tests.length) {
-    postMessage({type: 'finish' });
+    postMessage({type: "finish" });
     return;
   }
 
   var test = tests.shift();
   test();
 }
 
 onmessage = function() {
   status = false;
   try {
     if ((URLSearchParams instanceof Object)) {
       status = true;
     }
-  } catch(e) {
+  } catch (e) {
   }
   ok(status, "URLSearchParams in workers \\o/");
 
   runTest();
-}
+};
--- a/dom/url/tests/url_exceptions_worker.js
+++ b/dom/url/tests/url_exceptions_worker.js
@@ -1,38 +1,38 @@
 function ok(a, msg) {
-  postMessage({type: 'status', status: !!a, msg: msg });
+  postMessage({type: "status", status: !!a, msg });
 }
 
 onmessage = function(event) {
   // URL.href throws
-  var url = new URL('http://www.example.com');
+  var url = new URL("http://www.example.com");
   ok(url, "URL created");
 
   var status = false;
   try {
-    url.href = '42';
-  } catch(e) {
+    url.href = "42";
+  } catch (e) {
     status = true;
   }
   ok(status, "url.href = 42 should throw");
 
-  url.href = 'http://www.example.org';
+  url.href = "http://www.example.org";
   ok(true, "url.href should not throw");
 
-  status = false
+  status = false;
   try {
-    new URL('42');
-  } catch(e) {
+    new URL("42");
+  } catch (e) {
     status = true;
   }
   ok(status, "new URL(42) should throw");
 
-  status = false
+  status = false;
   try {
-    new URL('http://www.example.com', '42');
-  } catch(e) {
+    new URL("http://www.example.com", "42");
+  } catch (e) {
     status = true;
   }
   ok(status, "new URL(something, 42) should throw");
 
-  postMessage({type: 'finish' });
-}
+  postMessage({type: "finish" });
+};
--- a/dom/url/tests/url_worker.js
+++ b/dom/url/tests/url_worker.js
@@ -1,91 +1,91 @@
 onmessage = function(event) {
   if (event.data != 0) {
-    var worker = new Worker('url_worker.js');
+    var worker = new Worker("url_worker.js");
     worker.onmessage = function(event) {
       postMessage(event.data);
-    }
+    };
 
     worker.postMessage(event.data - 1);
     return;
   }
 
   status = false;
   try {
     if ((URL instanceof Object)) {
       status = true;
     }
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'URL object:' + URL});
+  postMessage({type: "status", status, msg: "URL object:" + URL});
 
   status = false;
   var blob = null;
   try {
     blob = new Blob([]);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob:' + blob});
+  postMessage({type: "status", status, msg: "Blob:" + blob});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(blob);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob URL:' + url});
+  postMessage({type: "status", status, msg: "Blob URL:" + url});
 
   status = false;
   try {
     URL.revokeObjectURL(url);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob Revoke URL'});
+  postMessage({type: "status", status, msg: "Blob Revoke URL"});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(true);
-  } catch(e) {
+  } catch (e) {
     status = true;
   }
 
-  postMessage({type: 'status', status: status, msg: 'CreateObjectURL should fail if the arg is not a blob'});
+  postMessage({type: "status", status, msg: "CreateObjectURL should fail if the arg is not a blob"});
 
   status = false;
   var url = null;
   try {
     url = URL.createObjectURL(blob);
     status = true;
-  } catch(e) {
+  } catch (e) {
   }
 
-  postMessage({type: 'status', status: status, msg: 'Blob URL2:' + url});
-  postMessage({type: 'url', url: url});
+  postMessage({type: "status", status, msg: "Blob URL2:" + url});
+  postMessage({type: "url", url});
 
   status = false;
   try {
     URL.createObjectURL(new Object());
-  } catch(e) {
+  } catch (e) {
     status = true;
   }
 
-  postMessage({type: 'status', status: status, msg: 'Exception wanted' });
+  postMessage({type: "status", status, msg: "Exception wanted" });
 
   var blob = new Blob([123]);
   var uri = URL.createObjectURL(blob);
-  postMessage({type: 'status', status: !!uri,
+  postMessage({type: "status", status: !!uri,
                msg: "The URI has been generated from the blob"});
 
   var u = new URL(uri);
-  postMessage({type: 'status', status: u.origin == 'http://mochi.test:8888',
+  postMessage({type: "status", status: u.origin == "http://mochi.test:8888",
                msg: "The URL generated from a blob URI has an origin."});
 
-  postMessage({type: 'finish' });
-}
+  postMessage({type: "finish" });
+};