rem:  window.setTimeout(SetTitle, 0, subject); 
add: var prefix = itsASaveOperation ? "titlePrefixSave" : "titlePrefixSend"; document.title = getString(prefix) + " " + subject; 
context: function onLoad() {    // Set global variables.    var subject = "";    msgProgress = window.arguments[0];    if (window.arguments[1])    {      var progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIMsgComposeProgressParams)      if (progressParams)      {        itsASaveOperation = (progressParams.deliveryMode != msgCompDeliverMode.Now);        subject = progressParams.subject;      }    }    if ( !msgProgress ) {        dump("Invalid argument to sendProgress.xul\n");        window.close()        return;    }    dialog = new Object;    dialog.strings = new Array;    dialog.status      = document.getElementById("dialog.status");    dialog.progress    = document.getElementById("dialog.progress");    dialog.progressText = document.getElementById("dialog.progressText");    // set our web progress listener on the helper app launcher    msgProgress.registerListener(progressListener);    moveToAlertPosition();    //We need to delay the set title else dom will overwrite it    window.setTimeout(SetTitle, 0, subject);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b8a982444dcbcb647174a0fb288bf5c13a1c9abf/sendProgress.js/buggy/mailnews/compose/resources/content/sendProgress.js