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