Bug 1329182 - remove trailing newURI null parameters in addon-sdk's indexed-db.js, r=jaws.
authorFlorian Quèze <florian@queze.net>
Mon, 09 Jan 2017 20:27:26 +0100
changeset 328555 79c7e34346304105ab56ff302a070c4a13329627
parent 328554 d816f539d536fcb917e1ce8ba012e7f2873bc3e6
child 328556 f650d9f42ff5acdd2f3021e53c0ff076fb1b198b
push id85477
push userflorian@queze.net
push dateMon, 09 Jan 2017 19:28:21 +0000
treeherdermozilla-inbound@79c7e3434630 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1329182
milestone53.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 1329182 - remove trailing newURI null parameters in addon-sdk's indexed-db.js, r=jaws.
addon-sdk/source/lib/sdk/indexed-db.js
--- a/addon-sdk/source/lib/sdk/indexed-db.js
+++ b/addon-sdk/source/lib/sdk/indexed-db.js
@@ -23,19 +23,18 @@ var sanitizeId = function(id){
     replace(uuidRe, "$1");
 
   return domain
 };
 
 const PSEUDOURI = "indexeddb://" + sanitizeId(id) // https://bugzilla.mozilla.org/show_bug.cgi?id=779197
 
 // Use XPCOM because `require("./url").URL` doesn't expose the raw uri object.
-var principaluri = Cc["@mozilla.org/network/io-service;1"].
-              getService(Ci.nsIIOService).
-              newURI(PSEUDOURI, null, null);
+var principaluri = Cc["@mozilla.org/network/io-service;1"]
+                     .getService(Ci.nsIIOService).newURI(PSEUDOURI);
 
 var ssm = Cc["@mozilla.org/scriptsecuritymanager;1"]
             .getService(Ci.nsIScriptSecurityManager);
 var principal = ssm.createCodebasePrincipal(principaluri, {});
 
 function toArray(args) {
   return Array.prototype.slice.call(args);
 }