NS_IMETHODIMP nsPluginInstanceOwner :: ShowStatus(const char *aStatusMsg)
NS_IMETHODIMP pluginInstanceOwner :: ShowStatus(const char *aStatusMsg)
NS_IMETHODIMP nsPluginInstanceOwner :: ShowStatus(const char *aStatusMsg){  nsresult  rv = NS_ERROR_FAILURE;  if (nsnull != mViewer)  {    nsIContentViewerContainer *cont;    rv = mViewer->GetContainer(cont);    if ((NS_OK == rv) && (nsnull != cont))    {      nsIWebShell *ws;      rv = cont->QueryInterface(kIWebShellIID, (void **)&ws);      if (NS_OK == rv)      {        nsIWebShell *rootWebShell;        ws->GetRootWebShell(rootWebShell);        if (nsnull != rootWebShell)        {          nsIWebShellContainer *rootContainer;          rv = rootWebShell->GetContainer(rootContainer);          if (nsnull != rootContainer)          {            nsIBrowserWindow *browserWindow;            if (NS_OK == rootContainer->QueryInterface(kIBrowserWindowIID, (void**)&browserWindow))            {              nsAutoString  msg = nsAutoString(aStatusMsg);              rv = browserWindow->SetStatus(msg.GetUnicode());              NS_RELEASE(browserWindow);            }            NS_RELEASE(rootContainer);          }          NS_RELEASE(rootWebShell);        }        NS_RELEASE(ws);      }      NS_RELEASE(cont);    }  }  return rv;}