add:  top.hPrefWindow.registerOKCallbackFunc(onPopupPrefsOK); 
context: function Startup(){  policyButton = document.getElementById("popupPolicy");  manageTree = document.getElementById("permissionsTree");  loadPermissions();  javascriptEnabledChange()    gImagesPref = document.getElementById("enableImagePref");  gImagesEnabled = document.getElementById("enableImages");  gImagesRestricted = document.getElementById("enableRestricted");  var prefValue = gImagesPref.getAttribute("value");  if (!prefValue)    prefValue = "0";  switch (prefValue) {  case "1": gImagesRestricted.checked=true;  case "0": gImagesEnabled.checked=true;  }  if (!gImagesEnabled.checked)    gImagesRestricted.disabled=true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5baebbbb4040b2abaa0eb284b8d96ebaa8da88b7/pref-features.js/buggy/browser/components/prefwindow/content/pref-features.js