rem: debug("network:offline-status-changed: " + aData);  if (!gShuttingDown && gOfflineStartupMode == kRememberLastState) { debug("remembering offline state: "); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); prefs.setBoolPref("network.online", aData == "online"); }  
add: debug("remembering offline state"); var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); prefs.setBoolPref("network.online", !ioService.offline); 
context:   observe: function(aSubject, aTopic, aData)  {    debug("observe: " + aTopic);    if (aTopic == "network:offline-status-changed")    {      debug("network:offline-status-changed: " + aData);      // if we're not shutting down, and startup mode is "remember online state"      if (!gShuttingDown && gOfflineStartupMode == kRememberLastState)      {        debug("remembering offline state: ");        var prefs = Components.classes["@mozilla.org/preferences-service;1"].          getService(Components.interfaces.nsIPrefBranch);        prefs.setBoolPref("network.online", aData == "online");      }    }    else if (aTopic == "app-startup")    {      var observerService = Components.        classes["@mozilla.org/observer-service;1"].        getService(Components.interfaces.nsIObserverService);      observerService.addObserver(this, "profile-after-change", false);    }    else if (aTopic == "xpcom-shutdown" || aTopic == "quit-application")    {      gShuttingDown = true;    }    else if (aTopic == "profile-after-change")    {      this.onProfileStartup();    }  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e53548d88532accdc8db4de2497be274c789a350/offlineStartup.js/buggy/mailnews/extensions/offline-startup/js/offlineStartup.js