fix for bug 30375 rev. matt patch taken

This commit is contained in:
matt%netscape.com 2000-08-11 20:10:50 +00:00
parent ef5c0e00fb
commit dbbcfd1efb
2 changed files with 15 additions and 1 deletions

View File

@ -310,6 +310,7 @@ nsXULBrowserWindow.prototype =
if (state & Components.interfaces.nsIWebProgressListener.flag_is_request) {
totalRequests += 1;
}
EnableBusyCursor(throbberElement.getAttribute("busy") == "true");
}
else if (state & Components.interfaces.nsIWebProgressListener.flag_stop) {
if (state & Components.interfaces.nsIWebProgressListener.flag_is_request) {
@ -337,6 +338,8 @@ nsXULBrowserWindow.prototype =
// XXX: These need to be based on window activity...
stopButton.setAttribute("disabled", true);
stopMenu.setAttribute("disabled", true);
EnableBusyCursor(false);
}
}
else if (state & Components.interfaces.nsIWebProgressListener.flag_transferring) {
@ -1678,6 +1681,17 @@ function FillInHTMLTooltip ( tipElement )
return retVal;
}
function EnableBusyCursor(doEnable) {
if (doEnable) {
window.setCursor("spinning");
window._content.setCursor("spinning");
}
else {
window.setCursor("auto");
window._content.setCursor("auto");
}
}
/**
* Use Stylesheet functions.

View File

@ -371,7 +371,7 @@ Contributor(s): ______________________________________. -->
<!-- this box is temporary, pending XBLified <browser> -->
<box id="browser" flex="1">
<browser context="context" type="content-primary" id="content"
src="about:blank" flex="1" tooltip="aHTMLTooltip"/>
src="about:blank" flex="1" tooltip="aHTMLTooltip" onmouseover="if (throbberElement) EnableBusyCursor(throbberElement.getAttribute('busy') == 'true')"/>
</box>
<statusbar id="status-bar" class="chromeclass-status"/>