rem:  if (gProgressDialog) { try { gProgressDialog.SetStatusMessage(failedStr); } catch (e) { dump(" nsIPrompt::Alert EXCEPTION ERROR CALLING ProgressDialog.SetStatusMessage\n"); AlertWithTitle(dlgTitle, text); } } else { AlertWithTitle(dlgTitle, text); CancelPublishing(); } 
add: AlertWithTitle(dlgTitle, text, gProgressDialog ? gProgressDialog : window); 
context:   alert : function(dlgTitle, text)  {    // If Progress dialog is up, put message in there instead of Alert    if (gProgressDialog)    {      try {        gProgressDialog.SetStatusMessage(failedStr);      } catch (e) {        dump(" nsIPrompt::Alert EXCEPTION ERROR CALLING ProgressDialog.SetStatusMessage\n");        AlertWithTitle(dlgTitle, text);      }    }    else    {      AlertWithTitle(dlgTitle, text);      CancelPublishing();    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d91b053f419d4d0175bdb25deed21f7800ac5c27/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js