зеркало из https://github.com/mozilla/pjs.git
Bug #361702 --> .manageOfflineStatus throws an exception on platforms that don't support the offline state manager code. sr=bienvenu
This commit is contained in:
Родитель
ac34e0d485
Коммит
1d55432400
|
@ -68,7 +68,14 @@ var nsOfflineStartup =
|
||||||
{
|
{
|
||||||
gStartingUp = false;
|
gStartingUp = false;
|
||||||
// if checked, the "work offline" checkbox overrides
|
// 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!");
|
debug("already offline!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче