зеркало из https://github.com/mozilla/gecko-dev.git
Fix for blocker bug 124578, "Mailnews is dead (shows only busy cursor)"
Checking in for hidday@geocities.com, r=bzbarsky sr=bienvenu a=endico
This commit is contained in:
Родитель
306aa89a91
Коммит
c3da3aca2c
|
@ -129,15 +129,22 @@ RDF_observer =
|
|||
function
|
||||
SetBusyCursor(window, enable)
|
||||
{
|
||||
if(enable == true)
|
||||
// Defensive check: setCursor() is only available for
|
||||
// chrome windows. Since one of our frame might be a
|
||||
// non-chrome window, make sure the window we treat has
|
||||
// a setCursor method.
|
||||
if("setCursor" in window)
|
||||
{
|
||||
window.setCursor("wait");
|
||||
debug("Directory: cursor=busy\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
window.setCursor("auto");
|
||||
debug("Directory: cursor=notbusy\n");
|
||||
if(enable == true)
|
||||
{
|
||||
window.setCursor("wait");
|
||||
debug("Directory: cursor=busy\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
window.setCursor("auto");
|
||||
debug("Directory: cursor=notbusy\n");
|
||||
}
|
||||
}
|
||||
|
||||
var numFrames = window.frames.length;
|
||||
|
|
Загрузка…
Ссылка в новой задаче