зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws.
This commit is contained in:
Родитель
3c564a2b02
Коммит
284974064e
|
@ -106,7 +106,7 @@ exports["test send messages to nsIObserverService"] = assert => {
|
|||
"null message received");
|
||||
|
||||
|
||||
const uri = newURI("http://www.foo.com", null, null);
|
||||
const uri = newURI("http://www.foo.com");
|
||||
send(output, uri);
|
||||
|
||||
assert.deepEqual(messages.shift(), { topic: topic, subject: uri },
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
var manifest = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest";
|
||||
var manifestURI = Cc["@mozilla.org/network/io-service;1"]
|
||||
.getService(Ci.nsIIOService)
|
||||
.newURI(manifest, null, null);
|
||||
.newURI(manifest);
|
||||
var updateService = Cc['@mozilla.org/offlinecacheupdate-service;1']
|
||||
.getService(Ci.nsIOfflineCacheUpdateService);
|
||||
|
||||
|
|
|
@ -73,8 +73,8 @@ if (OfflineTest.setup()) {
|
|||
var manifest = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest";
|
||||
var ioService = Cc["@mozilla.org/network/io-service;1"]
|
||||
.getService(Ci.nsIIOService);
|
||||
var manifestURI = ioService.newURI(manifest, null, null);
|
||||
var documentURI = ioService.newURI(document.documentURI, null, null);
|
||||
var manifestURI = ioService.newURI(manifest);
|
||||
var documentURI = ioService.newURI(document.documentURI);
|
||||
var update = updateService.scheduleUpdate(manifestURI, documentURI, systemPrincipal, window);
|
||||
update.addObserver(updateObserver, false);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ function createURI(urispec)
|
|||
{
|
||||
var ioServ = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService);
|
||||
return ioServ.newURI(urispec, null, null);
|
||||
return ioServ.newURI(urispec);
|
||||
}
|
||||
|
||||
// test
|
||||
|
|
|
@ -25,7 +25,7 @@ SimpleTest.waitForExplicitFinish();
|
|||
var manifest = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/updatingManifest.sjs";
|
||||
var manifestURI = Cc["@mozilla.org/network/io-service;1"]
|
||||
.getService(Ci.nsIIOService)
|
||||
.newURI(manifest, null, null);
|
||||
.newURI(manifest);
|
||||
var updateService = Cc['@mozilla.org/offlinecacheupdate-service;1']
|
||||
.getService(Ci.nsIOfflineCacheUpdateService);
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ var Ci = Components.interfaces;
|
|||
function make_uri(url) {
|
||||
var ios = Cc["@mozilla.org/network/io-service;1"].
|
||||
getService(Ci.nsIIOService);
|
||||
return ios.newURI(url, null, null);
|
||||
return ios.newURI(url);
|
||||
}
|
||||
|
||||
// Ensure "fullscreen" permissions are not present on the test URI.
|
||||
|
|
|
@ -17,7 +17,7 @@ function startTest()
|
|||
var dsm = Components.classes["@mozilla.org/dom/localStorage-manager;1"]
|
||||
.getService(Components.interfaces.nsIDOMStorageManager);
|
||||
|
||||
var uri = ios.newURI(url, "", null);
|
||||
var uri = ios.newURI(url);
|
||||
var principal = ssm.createCodebasePrincipal(uri, {});
|
||||
var storage = dsm.createStorage(window, principal, "");
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ function make_uri(aUrl)
|
|||
{
|
||||
var ios = Cc["@mozilla.org/network/io-service;1"].
|
||||
getService(Ci.nsIIOService);
|
||||
return ios.newURI(aUrl, null, null);
|
||||
return ios.newURI(aUrl);
|
||||
}
|
||||
|
||||
function resource_handler(aMetadata, aResponse)
|
||||
|
|
|
@ -46,7 +46,7 @@ classifierHelper.waitForInit = function() {
|
|||
const table = "test-phish-simple";
|
||||
const url = "http://itisatrap.org/firefox/its-a-trap.html";
|
||||
let principal = secMan.createCodebasePrincipal(
|
||||
iosvc.newURI(url, null, null), {});
|
||||
iosvc.newURI(url), {});
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
observerService.addObserver(function() {
|
||||
|
|
|
@ -156,7 +156,7 @@ function runTest() {
|
|||
return;
|
||||
}
|
||||
let test = testDatas.shift();
|
||||
let uri = ios.newURI(test.url, null, null);
|
||||
let uri = ios.newURI(test.url);
|
||||
let prin = ssm.createCodebasePrincipal(uri, {});
|
||||
SpecialPowers.doUrlClassify(prin, null, false, function(errorCode, table, provider, prefix) {
|
||||
is(errorCode, test.expect.error, `Test url ${test.url} correct error`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче