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
Родитель 45bb59aa84
Коммит 150164d79a
2 изменённых файлов: 7 добавлений и 8 удалений

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

@ -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.

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

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