if (!win) {
if (IsOuterWindow()) { win = GetCurrentInnerWindow();  if (!win) { NS_ERROR("No current inner window available!");  return PR_FALSE; } } else { if (!mOuterWindow) { NS_ERROR("IsLoading() called on orphan inner window!");  return PR_FALSE; }
  PRBool IsLoading() const  {    const nsPIDOMWindow *win = GetCurrentInnerWindow();    if (!win) {      win = this;    }    return !win->mIsDocumentLoaded;  }