Bug 243621 - (Back out) Standardize QueryInterface without throw, r=timeless, sr=sicking

This commit is contained in:
Phil Ringnalda
2009-01-15 20:02:21 -08:00
parent 04a6d2e1b1
commit 8b478bbc71
13 changed files with 16 additions and 29 deletions

View File

@@ -53,9 +53,9 @@ function UrlClassifierTable() {
UrlClassifierTable.prototype.QueryInterface = function(iid) {
if (iid.equals(Components.interfaces.nsISupports) ||
iid.equals(Components.interfaces.nsIUrlClassifierTable))
return this;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
return null;
return this;
throw Components.results.NS_ERROR_NO_INTERFACE;
}
/**