зеркало из https://github.com/mozilla/gecko-dev.git
Bug #361702 --> nsIIOService::SetManageOfflineStatus throws a JS error on platforms that don't support nsINetworkLinkService. sr=bienvenu
This commit is contained in:
Родитель
45bb59aa84
Коммит
150164d79a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче