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