rem: 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 ) { broadcaster.setAttribute("disabled","true"); } } catch(e) { 
add: 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 ) { broadcaster.setAttribute("disabled","true"); 
context: function setOfflineUI(offline){  var broadcaster = document.getElementById("Communicator:WorkMode");  if (!broadcaster) return;  //Checking for a preference "network.online", if it's locked, disabling   // network icon and menu item  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 ) {          broadcaster.setAttribute("disabled","true");      }  } catch(e) {  }  var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");  if (offline)    {      broadcaster.setAttribute("offline", "true");      broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));      broadcaster.setAttribute("label", bundle.GetStringFromName("goonline"));      FillInTooltip(broadcaster);    }  else    {      broadcaster.removeAttribute("offline");      broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));      broadcaster.setAttribute("label", bundle.GetStringFromName("gooffline"));      FillInTooltip(broadcaster);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/84322777d4cb9b84f44f8c2e5037f89341df1ba6/utilityOverlay.js/clean/xpfe/communicator/resources/content/utilityOverlay.js