зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6f121c64db
Коммит
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);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче