rem: onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) 
add: onProgressChange: function(aWebProgress,      aRequest, aCurSelfProgress,  aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (switchUI) 
context:     onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)    {      if (switchUI)       {        dialog.tempLabel.setAttribute("hidden", "true");        dialog.progress.setAttribute("hidden", "false");        dialog.cancel.setAttribute("disabled", "false");        var progressLabel = getString("progress");        if (progressLabel == "") {          progressLabel = "Progress:"; // better than nothing        }        switchUI = false;      }      if (progressParams)      {        var docTitleStr = elipseString(progressParams.docTitle, false);        if (docTitleStr != docTitle) {          docTitle = docTitleStr;          dialog.title.value = docTitle;        }        var docURLStr = progressParams.docURL;        if (docURLStr != docURL && dialog.title != null) {          docURL = docURLStr;          if (docTitle == "") {            dialog.title.value = elipseString(docURLStr, true);          }        }      }      // Calculate percentage.      var percent;      if ( aMaxTotalProgress > 0 )       {        percent = Math.round( (aCurTotalProgress*100)/aMaxTotalProgress );        if ( percent > 100 )          percent = 100;                dialog.progress.removeAttribute( "mode");                // Advance progress meter.        dialog.progress.setAttribute( "value", percent );        // Update percentage label on progress meter.        var percentPrint = getString( "progressText" );        percentPrint = replaceInsert( percentPrint, 1, percent );        dialog.progressText.setAttribute("value", percentPrint);      }       else       {        // Progress meter should be barber-pole in this case.        dialog.progress.setAttribute( "mode", "undetermined" );        // Update percentage label on progress meter.        dialog.progressText.setAttribute("value", "");      }    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2abcfc3bd3437e146a421dc9404a6e59b89a511a/printProgress.js/clean/xpfe/global/resources/content/printProgress.js