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:
cbiesinger%web.de 2006-07-27 14:54:29 +00:00
Родитель 306aa89a91
Коммит c3da3aca2c
1 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@ -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;