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
parent 1f6dffd536
commit 9e2ffa9d46

View File

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