зеркало из https://github.com/mozilla/pjs.git
fix for bug 30375 rev. matt patch taken
This commit is contained in:
Родитель
e87e8b5cc6
Коммит
b7c5068331
|
@ -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"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче