fix startup js error - patch from dbaron.

This commit is contained in:
ben%bengoodger.com 2004-04-06 23:40:02 +00:00
Родитель 933ab62a06
Коммит 320fea90bb
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -136,6 +136,7 @@ nsExtensionManager.prototype = {
getNewestExtensionCallback: function (aResult) getNewestExtensionCallback: function (aResult)
{ {
this._newestID = aResult; this._newestID = aResult;
dump("*** getNewestExtensionCallback result = " + aResult + "\n");
if (this._newestID != -1) if (this._newestID != -1)
proxy.getProperty(this._newestID, "xpiurl"); proxy.getProperty(this._newestID, "xpiurl");
@ -144,12 +145,12 @@ nsExtensionManager.prototype = {
getPropertyCallback: function (aResult) getPropertyCallback: function (aResult)
{ {
dump("*** UPDATE URL = " + aResult + "\n"); dump("*** UPDATE URL = " + aResult + "\n");
}, }
}; };
var wspFactory = Components.classes["@mozilla.org/xmlextras/proxy/webserviceproxyfactory;1"] var wspFactory = Components.classes["@mozilla.org/xmlextras/proxy/webserviceproxyfactory;1"]
.getService(Components.interfaces.nsIWebServiceProxyFactory); .getService(Components.interfaces.nsIWebServiceProxyFactory);
wspFactory.createProxyAsync("http://localhost:8080/axis/VersionCheck.wsdl", wspFactory.createProxyAsync("http://localhost:8080/axis/services/VersionCheck?wsdl",
"VersionCheck", "", true, listener); "VersionCheck", "", true, listener);
} }
else else
@ -256,6 +257,7 @@ nsExtensionManager.prototype = {
QueryInterface: function (aIID) QueryInterface: function (aIID)
{ {
if (!aIID.equals(Components.interfaces.nsIExtensionManager) && if (!aIID.equals(Components.interfaces.nsIExtensionManager) &&
!aIID.equals(Components.interfaces.nsIObserver) &&
!aIID.equals(Components.interfaces.nsISupports)) !aIID.equals(Components.interfaces.nsISupports))
throw Components.results.NS_ERROR_NO_INTERFACE; throw Components.results.NS_ERROR_NO_INTERFACE;
return this; return this;