rem: setCapabilityPolicy("capability.policy.default.HTMLImageElement.src", getCheckboxValue("allowImageSrcChange")); 
add: parent.hPrefWindow.setPref("bool", "dom.disable_image_src_set", !getCheckboxValue("allowImageSrcChange")); 
context: function doOnOk(){  //If a user makes a change to this panel, goes to another panel, and returns to this panel to   //make another change, then we cannot use data[elementName].  This is because data[elementName]   //contains the original xul change and we would loose the new change. Thus we track all changes  //by using getElementById.  //The nested functions are needed because doOnOk cannot access anything outside of its scope  //when it is called   function getCheckboxValue(name){    if ("onCheckboxCheck" in window)      return document.getElementById(name).checked;    return data[name].checked;  }   function setCapabilityPolicy(prefName, checkboxValue){    //If checked, we allow the script to do task, so we clear the pref.    //since some options are made up of multiple capability policies and users can turn     //individual ones on/off via prefs.js, it can happen that we clear a nonexistent pref    if (checkboxValue){      try {         parent.hPrefWindow.pref.ClearUserPref(prefName);      } catch (e) {}    } else {      parent.hPrefWindow.setPref("string", prefName, "noAccess");    }  }  var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"];   if (data.scriptData["allowWindowOpenChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_open_during_load",       !getCheckboxValue('allowWindowOpen'));  }  if (data.scriptData["allowTargetNewChanged"].value){    parent.hPrefWindow.setPref("bool", "browser.block.target_new_window",       !getCheckboxValue('allowTargetNew'));  }  if (data.scriptData["allowWindowMoveResizeChanged"].value){    var allowWindowMoveResize = getCheckboxValue("allowWindowMoveResize");    setCapabilityPolicy("capability.policy.default.Window.resizeTo", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.innerWidth.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.innerHeight.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.outerWidth.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.outerHeight.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.sizeToContent", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.resizeBy", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.screenX.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.screenY.set", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.moveTo", allowWindowMoveResize);    setCapabilityPolicy("capability.policy.default.Window.moveBy", allowWindowMoveResize);  }  if (data.scriptData["allowWindowStatusChangeChanged"].value){    var allowWindowStatusChange = getCheckboxValue("allowWindowStatusChange");    setCapabilityPolicy("capability.policy.default.Window.status", allowWindowStatusChange);    setCapabilityPolicy("capability.policy.default.Window.defaultStatus", allowWindowStatusChange);  }  if (data.scriptData["allowWindowFlipChanged"].value){    setCapabilityPolicy("capability.policy.default.Window.focus",       getCheckboxValue("allowWindowFlip"));  }  if (data.scriptData["allowDocumentCookieSetChanged"].value){    setCapabilityPolicy("capability.policy.default.HTMLDocument.cookie.set",       getCheckboxValue("allowDocumentCookieSet"));  }  if (data.scriptData["allowDocumentCookieGetChanged"].value){    setCapabilityPolicy("capability.policy.default.HTMLDocument.cookie.get",       getCheckboxValue("allowDocumentCookieGet"));  }   if (data.scriptData["allowImageSrcChangeChanged"].value){    setCapabilityPolicy("capability.policy.default.HTMLImageElement.src",       getCheckboxValue("allowImageSrcChange"));  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/fe6bdab9a78753158bc0406d0aa1aafeee0d05aa/pref-scripts.js/clean/suite/common/pref/pref-scripts.js