mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 289468 "@mozilla.org/network/simple-uri;1" is not a service and should not be accessed as one
r=neil sr=neil a=shaver
This commit is contained in:
parent
6f121c64db
commit
6b6bbb558b
@ -57,8 +57,8 @@ var InsUtil = {
|
||||
*******************************************************************************/
|
||||
convertChromeURL: function(aURL)
|
||||
{
|
||||
var uri = XPCU.getService("@mozilla.org/network/simple-uri;1", "nsIURI");
|
||||
uri.spec = aURL;
|
||||
var uri = XPCU.getService("@mozilla.org/network/io-service;1", "nsIIOService")
|
||||
.newURI(aURL, null, null);
|
||||
var reg = XPCU.getService("@mozilla.org/chrome/chrome-registry;1", "nsIChromeRegistry");
|
||||
return reg.convertChromeURL(uri);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user