mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
fix for bug 30375 rev. matt patch taken
This commit is contained in:
parent
ef5c0e00fb
commit
dbbcfd1efb
@ -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.
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user