mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug #361702 --> .manageOfflineStatus throws an exception on platforms that don't support the offline state manager code. sr=bienvenu
This commit is contained in:
parent
1f6dffd536
commit
9e2ffa9d46
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user