Bug #361702 --> nsIIOService::SetManageOfflineStatus throws a JS error on platforms that don't support nsINetworkLinkService. sr=bienvenu

This commit is contained in:
scott%scott-macgregor.org 2007-02-03 02:51:03 +00:00
parent 45bb59aa84
commit 150164d79a
2 changed files with 7 additions and 8 deletions

View File

@ -246,7 +246,12 @@ pref("offline.send.unsent_messages", 0);
// 2 Never synchronize the offline store when going offline
pref("offline.download.download_messages", 0);
pref("offline.prompt_synch_on_exit", true);
pref("offline.autoDetect", true); // automatically move the user offline or online based on the network connection
#ifdef XP_WIN
pref("offline.autoDetect", true); // automatically move the user offline or online based on the network connection
#else
pref("offline.autoDetect", false);
#endif
// Expose only select protocol handlers. All others should go
// through the external protocol handler route.

View File

@ -68,13 +68,7 @@ var nsOfflineStartup =
{
gStartingUp = false;
// if checked, the "work offline" checkbox overrides
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)
if (ioService.offline && !ioService.manageOfflineStatus)
{
debug("already offline!");
return;