Bug 172846 QueryInterface should not throw Components.results.NS_NOINTERFACE for Components.interfaces.nsISupports

r=neil@parkwaycc.co.uk sr=kin@netscape.com
This commit is contained in:
timeless%mac.com 2002-10-08 14:33:24 +00:00
Родитель 724a8c2922
Коммит 89f9ca5c7f
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -96,9 +96,9 @@ nsBrowserContentListener.prototype =
},
QueryInterface: function(iid)
{
if (iid.equals(Components.interfaces.nsIURIContentListener))
return this;
if (iid.equals(Components.interfaces.nsISupportsWeakReference))
if (iid.equals(Components.interfaces.nsIURIContentListener) ||
iid.equals(Components.interfaces.nsISupportsWeakReference) ||
iid.equals(Components.interfaces.nsISupports))
return this;
throw Components.results.NS_NOINTERFACE;