Adding debug output onProgressChange.

This commit is contained in:
dougt%meer.net 2006-01-13 06:43:34 +00:00
parent 2f75bbef64
commit d09e205670

View File

@ -73,7 +73,7 @@ nsBrowserStatusHandler.prototype =
QueryInterface : function(aIID)
{
if (aIID.equals(nsCI.nsIWebProgressListener) ||
aIID.equals(Components.interfaces.nsIXULBrowserWindow) ||
aIID.equals(nsCI.nsIXULBrowserWindow) ||
aIID.equals(nsCI.nsISupportsWeakReference) ||
aIID.equals(nsCI.nsISupports))
{
@ -175,6 +175,10 @@ nsBrowserStatusHandler.prototype =
},
onProgressChange : function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)
{
document.getElementById("statusbar-text").label= "dbg:onProgressChange " + aCurTotalProgress + " " + aMaxTotalProgress;
var percentage = parseInt((aCurTotalProgress/aMaxTotalProgress)*parseInt(gURLBarBoxObject.width));
if(percentage<0) percentage=10;
document.getElementById("urlbar").inputField.style.backgroundPosition=percentage+"px 100%";