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

This commit is contained in:
roc+%cs.cmu.edu 2006-07-29 05:44:41 +00:00
parent f9ae1c323e
commit 20eaaa8d07

View File

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