Bug #361702 --> .manageOfflineStatus throws an exception on platforms that don't support the offline state manager code. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2007-01-15 22:51:49 +00:00
Родитель ac34e0d485
Коммит 1d55432400
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -68,7 +68,14 @@ var nsOfflineStartup =
{
gStartingUp = false;
// if checked, the "work offline" checkbox overrides
if (ioService.offline && !ioService.manageOfflineStatus) {
var managingOffineStatus = false;
try
{
managingOffineStatus = ioService.manageOfflineStatus;
} catch (ex) {} // the getter for ioService.manageOfflineStatus throws an exception on platforms that don't support it.
if (ioService.offline && !managingOffineStatus)
{
debug("already offline!");
return;
}