add:   try { var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);  var prefBranch = prefService.getBranch(null);  var offlineLocked = prefBranch.prefIsLocked("network.online");  if (!offlineLocked ) { if (aToggleFlag) ioService.offline = !ioService.offline; } else { broadcaster.setAttribute("disabled","true"); } } catch(e) { } 
context: function setOfflineStatus(aToggleFlag){  var ioService = Components.classesByID["{9ac9e770-18bc-11d3-9337-00104ba0fd40}"]                            .getService(Components.interfaces.nsIIOService);  var broadcaster = document.getElementById("Communicator:WorkMode");  if (aToggleFlag)    ioService.offline = !ioService.offline;  var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");  if (ioService.offline && broadcaster)    {      broadcaster.setAttribute("offline", "true");      broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));      broadcaster.setAttribute("label", bundle.GetStringFromName("goonline"));      FillInTooltip(broadcaster);    }  else if (broadcaster)    {      broadcaster.removeAttribute("offline");      broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));      broadcaster.setAttribute("label", bundle.GetStringFromName("gooffline"));      FillInTooltip(broadcaster);    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1e1ffa36cfb58789ef708a87832e9af1777a6c69/utilityOverlay.js/buggy/xpfe/communicator/resources/content/utilityOverlay.js