Changed docshell so it turns the mouse pointer "busy" in the associated window while it is loading a document. Removed the hack in the navigator chrome that used the throbber status to set the busy pointer. b=30375 sr=rpotts@netscape.com

This commit is contained in:
locka%iol.ie 2006-09-14 05:55:54 +00:00
parent 2755eaa923
commit 190ed01c8e
2 changed files with 0 additions and 20 deletions

View File

@ -251,7 +251,6 @@ nsXULBrowserWindow.prototype =
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
this.totalRequests += 1;
}
EnableBusyCursor(throbberElement.getAttribute("busy") == "true");
}
else if (state & nsIWebProgressListener.STATE_STOP) {
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
@ -284,8 +283,6 @@ nsXULBrowserWindow.prototype =
// Set buttons in form menu
setFormToolbar();
EnableBusyCursor(false);
}
}
else if (state & nsIWebProgressListener.STATE_TRANSFERRING) {
@ -1188,21 +1185,6 @@ function FillInHTMLTooltip(tipElement)
return retVal;
}
function EnableBusyCursor(doEnable)
{
if (doEnable) {
// set the spinning cursor everywhere but mac, we have our own way to
// do this thankyouverymuch.
if (navigator.platform.indexOf("Mac") == -1) {
setCursor("spinning");
_content.setCursor("spinning");
}
} else {
setCursor("auto");
_content.setCursor("auto");
}
}
/**
* Use Stylesheet functions.
* Written by Tim Hill (bug 6782)

View File

@ -313,8 +313,6 @@ Contributor(s): ______________________________________. -->
<browser id="content" type="content-primary" src="about:blank"
flex="1" tooltip="aHTMLTooltip"
context="contentAreaContextMenu"
onmouseover="if (throbberElement)
EnableBusyCursor(throbberElement.getAttribute('busy') == 'true');"
onclick="return contentAreaClick(event);"
ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"/>
</box>