rem: mode = "undetermined"; if ( !startTime ) { startTime = (new Date()).getTime(); } } else { mode = "normal"; } meter.setAttribute("mode",mode); if ( mode == "normal" ) { 
add: if ( wasBusy == "false" ) {  startTime = (new Date()).getTime();  meter.setAttribute("mode","undetermined"); }  } else if ( busy == "false" && wasBusy == "true" ) {  
context:         function onProgress() {            var throbber = document.getElementById("Browser:Throbber");            var meter    = document.getElementById("Browser:LoadingProgress");            if ( throbber && meter ) {                var busy = throbber.getAttribute("busy");                if ( busy == "true" ) {                    mode = "undetermined";					if ( !startTime ) {						startTime = (new Date()).getTime();					}                } else {                    mode = "normal";                }                meter.setAttribute("mode",mode);                if ( mode == "normal" ) {                    var status = document.getElementById("Browser:Status");                    if ( status ) {						var elapsed = ( (new Date()).getTime() - startTime ) / 1000;						var msg = "Document: Done (" + elapsed + " secs)";						dump( msg + "\n" );                        status.setAttribute("value",msg);                        defaultStatus = msg;                    }					startTime = 0;                }            }        }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4fd7e0f496ee63f6cff737509e6217399791a135/navigator.js/buggy/xpfe/browser/src/navigator.js