rem: var pref = prefService.getBranch(finalPrefString); isDownloadLocked = pref.prefIsLocked("offline_download"); if(isDownloadLocked) document.getElementById("offline.newFolder").disabled = true;  isGetNewLocked = pref.prefIsLocked("download_bodies_on_get_new_mail"); if(isGetNewLocked) document.getElementById("offline.downloadBodiesOnGetNewMail").disabled = true;  
add: gPref = prefService.getBranch(finalPrefString);  disableIfLocked( prefElements );  /*  This element doesn't currently work.  When it does and the prefstring is known, it needs to be added to the array.  See bugs 91560 and 79561 { prefstring:"", id:"nntp.removeBody" } */ 
context: function onLockPreference(){    var isDownloadLocked = false;    var isGetNewLocked = false;    var initPrefString = "mail.server";     var finalPrefString;     var prefService = Components.classes["@mozilla.org/preferences-service;1"];    prefService = prefService.getService();    prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);    finalPrefString = initPrefString + "." + gIncomingServer.key + ".";    var pref = prefService.getBranch(finalPrefString);    isDownloadLocked = pref.prefIsLocked("offline_download");    if(isDownloadLocked)         document.getElementById("offline.newFolder").disabled = true;        isGetNewLocked = pref.prefIsLocked("download_bodies_on_get_new_mail");    if(isGetNewLocked)        document.getElementById("offline.downloadBodiesOnGetNewMail").disabled = true;              } 
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/f298bb6baea2980b848e07b6a8f17ea55a3b02af/am-offline.js/buggy/mailnews/base/prefs/resources/content/am-offline.js