if (aIID.Equals(nsCOMTypeInfo<nsISupportsWeakReference>::GetIID())) {
if (aIID.Equals(NS_GET_IID(nsISupportsWeakReference))) {
nsDocLoaderImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr){    if (NULL == aInstancePtr) {        return NS_ERROR_NULL_POINTER;    }    if (aIID.Equals(kIDocumentLoaderIID)) {        *aInstancePtr = (void*)(nsIDocumentLoader*)this;        NS_ADDREF_THIS();        return NS_OK;    }    if (aIID.Equals(kIStreamObserverIID)) {        *aInstancePtr = (void*)(nsIStreamObserver*)this;        NS_ADDREF_THIS();        return NS_OK;    }    if (aIID.Equals(nsCOMTypeInfo<nsISupportsWeakReference>::GetIID())) {        *aInstancePtr = NS_STATIC_CAST(nsISupportsWeakReference*,this);        NS_ADDREF_THIS();        return NS_OK;            }    return NS_NOINTERFACE;}