nsCOMPtr<nsIDOMLoadListener> listener = do_QueryReferent(mParent);  if (listener) { return listener->Error(aEvent);
if (mLoading) { mLoading = PR_FALSE;
txLoadListenerProxy::Error(nsIDOMEvent* aEvent){    nsCOMPtr<nsIDOMLoadListener> listener = do_QueryReferent(mParent);    if (listener) {        return listener->Error(aEvent);    }    return NS_OK;}