const nsPIDOMWindow *win = GetCurrentInnerWindow();
const nsPIDOMWindow *win;
  PRBool IsLoading() const  {    const nsPIDOMWindow *win = GetCurrentInnerWindow();    if (!win) {      win = this;    }    return !win->mIsDocumentLoaded;  }