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:
timeless%mozdev.org 2005-06-01 21:18:11 +00:00
Родитель 6f121c64db
Коммит 6b6bbb558b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
},