rem: if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START) {   dialog.progress.setAttribute( "mode", "undetermined" ); }  if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) {   var msg = getString( "printComplete" ); dialog.title.setAttribute("value", msg);   dialog.progress.setAttribute( "value", 100 ); dialog.progress.setAttribute( "mode", "normal" ); var percentPrint = getString( "progressText" ); percentPrint = replaceInsert( percentPrint, 1, 100 ); dialog.progressText.setAttribute("value", percentPrint); window.close(); } }, 
add:  setProgressPercentage(-1); } if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) {  dialog.titleDeck.selectedIndex = TITLE_COMPLETE_DECK; setProgressPercentage(100); window.close(); } }, 
context:     onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus)    {      if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)      {        // Put progress meter in undetermined mode.        // dialog.progress.setAttribute( "value", 0 );        dialog.progress.setAttribute( "mode", "undetermined" );      }            if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)      {        // we are done printing         // Indicate completion in title area.        var msg = getString( "printComplete" );        dialog.title.setAttribute("value", msg);        // Put progress meter at 100%.        dialog.progress.setAttribute( "value", 100 );        dialog.progress.setAttribute( "mode", "normal" );        var percentPrint = getString( "progressText" );        percentPrint = replaceInsert( percentPrint, 1, 100 );        dialog.progressText.setAttribute("value", percentPrint);        window.close();      }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/59cd8cec6e8a8a946512ae4ad7ee8b2f545283fd/printProgress.js/buggy/xpfe/global/resources/content/printProgress.js