Bug 602780 followup. Fix bustage.
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 25 Oct 2010 23:37:32 -0400
changeset 27173 866a335ecda154475207e6105c062fceb0cf5ae1
parent 27172 48f46881338a036d2220770be18606bb6931c8e1
child 27175 0d5d5e39844b6be772054b6d5c99b17c90da8b04
push id2546
push userbzbarsky@mozilla.com
push dateTue, 26 Oct 2010 03:37:51 +0000
bugs602780
milestone1.9.1.15pre
Bug 602780 followup. Fix bustage.
netwerk/test/unit/test_compareURIs.js
--- a/netwerk/test/unit/test_compareURIs.js
+++ b/netwerk/test/unit/test_compareURIs.js
@@ -1,9 +1,10 @@
-Components.utils.import("resource://gre/modules/NetUtil.jsm");
+var ios = Components.classes["@mozilla.org/network/io-service;1"]
+                    .getService(Components.interfaces.nsIIOService);
 
 function do_info(text, stack) {
   if (!stack)
     stack = Components.stack.caller;
 
   dump("TEST-INFO | " + stack.filename + " | [" + stack.name + " : " +
        stack.lineNumber + "] " + text + "\n");
 }
@@ -29,18 +30,18 @@ function run_test()
 	[ "view-source:http://mozilla.org/", "http://mozilla.org/", true ]
     ];
 
     var secman = Components.classes["@mozilla.org/scriptsecuritymanager;1"].getService(Components.interfaces.nsIScriptSecurityManager);
 
     tests.forEach(function(aTest) {
         do_info("Comparing " + aTest[0] + " to " + aTest[1]);
 
-	var uri1 = NetUtil.newURI(aTest[0]);
-	var uri2 = NetUtil.newURI(aTest[1]);
+	var uri1 = ios.newURI(aTest[0], null, null);
+	var uri2 = ios.newURI(aTest[1], null, null);
 
 	var equal;
 	try {
 	    secman.checkSameOriginURI(uri1, uri2, false);
 	    equal = true;
 	} catch (e) {
 	    equal = false
 	}