From 5ea686c0fbe809a0ec2a259688707b0625b83af9 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Sat, 29 Jul 2006 05:44:43 +0000 Subject: [PATCH] Update suite to work with nsIOService2 b=333145 r=Mnyromyr r+sr=jag sr=bienvenu --- suite/common/utilityOverlay.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/suite/common/utilityOverlay.js b/suite/common/utilityOverlay.js index 581fcad0a5e..a81a53f0bb2 100644 --- a/suite/common/utilityOverlay.js +++ b/suite/common/utilityOverlay.js @@ -61,17 +61,6 @@ var gShowBiDi = false; function toggleOfflineStatus() { - try { - // Stop automatic management of the offline status. - // XXX this is just to maintain the old behavior. Someone should - // figure out how they want automatic online/offline to work in - // Seamonkey and make it happen. - var ioService = Components.classes["@mozilla.org/network/io-service;1"]. - getService(Components.interfaces.nsIIOService2); - ioService.manageOfflineStatus = false; - } catch (ex) { - } - var checkfunc; try { checkfunc = document.getElementById("offline-status").getAttribute('checkfunc'); @@ -81,13 +70,14 @@ function toggleOfflineStatus() } var ioService = Components.classes[kIOServiceProgID] - .getService(Components.interfaces.nsIIOService); + .getService(Components.interfaces.nsIIOService2); if (checkfunc) { if (!eval(checkfunc)) { // the pre-offline check function returned false, so don't go offline return; } } + ioService.manageOfflineStatus = false; ioService.offline = !ioService.offline; }