mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
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:
parent
2755eaa923
commit
190ed01c8e
@ -251,7 +251,6 @@ nsXULBrowserWindow.prototype =
|
|||||||
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
|
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
|
||||||
this.totalRequests += 1;
|
this.totalRequests += 1;
|
||||||
}
|
}
|
||||||
EnableBusyCursor(throbberElement.getAttribute("busy") == "true");
|
|
||||||
}
|
}
|
||||||
else if (state & nsIWebProgressListener.STATE_STOP) {
|
else if (state & nsIWebProgressListener.STATE_STOP) {
|
||||||
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
|
if (state & nsIWebProgressListener.STATE_IS_REQUEST) {
|
||||||
@ -284,8 +283,6 @@ nsXULBrowserWindow.prototype =
|
|||||||
|
|
||||||
// Set buttons in form menu
|
// Set buttons in form menu
|
||||||
setFormToolbar();
|
setFormToolbar();
|
||||||
|
|
||||||
EnableBusyCursor(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (state & nsIWebProgressListener.STATE_TRANSFERRING) {
|
else if (state & nsIWebProgressListener.STATE_TRANSFERRING) {
|
||||||
@ -1188,21 +1185,6 @@ function FillInHTMLTooltip(tipElement)
|
|||||||
return retVal;
|
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.
|
* Use Stylesheet functions.
|
||||||
* Written by Tim Hill (bug 6782)
|
* Written by Tim Hill (bug 6782)
|
||||||
|
@ -313,8 +313,6 @@ Contributor(s): ______________________________________. -->
|
|||||||
<browser id="content" type="content-primary" src="about:blank"
|
<browser id="content" type="content-primary" src="about:blank"
|
||||||
flex="1" tooltip="aHTMLTooltip"
|
flex="1" tooltip="aHTMLTooltip"
|
||||||
context="contentAreaContextMenu"
|
context="contentAreaContextMenu"
|
||||||
onmouseover="if (throbberElement)
|
|
||||||
EnableBusyCursor(throbberElement.getAttribute('busy') == 'true');"
|
|
||||||
onclick="return contentAreaClick(event);"
|
onclick="return contentAreaClick(event);"
|
||||||
ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"/>
|
ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"/>
|
||||||
</box>
|
</box>
|
||||||
|
Loading…
Reference in New Issue
Block a user