mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
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:
parent
f9ae1c323e
commit
20eaaa8d07
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user