From 20eaaa8d07aeb6e0b051f315b048d5c7466c5fb7 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Sat, 29 Jul 2006 05:44:41 +0000 Subject: [PATCH] Bug 312793. Add Necko APIs to enable automatic management of online/offline status, and let Firefox use it. Disable automatic management in Thunderbird and Seamonkey until those apps are ready for it. Other applications will get automatic management by default. This needs platform-specific components to be created before it will have any effect. r+sr=darin --- suite/common/utilityOverlay.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/suite/common/utilityOverlay.js b/suite/common/utilityOverlay.js index 0d3b32f46a1f..581fcad0a5e2 100644 --- a/suite/common/utilityOverlay.js +++ b/suite/common/utilityOverlay.js @@ -61,6 +61,17 @@ 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');