rem:  if (data.scriptData["allowWindowOpenChanged"].value){ parent.hPrefWindow.setPref("bool", "dom.disable_open_during_load", !getCheckboxValue('allowWindowOpen')); } 
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;  }  var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-scripts.xul"];   if (data.scriptData["allowWindowOpenChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_open_during_load",      !getCheckboxValue('allowWindowOpen'));  }  if (data.scriptData["allowWindowMoveResizeChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_window_move_resize",      !getCheckboxValue('allowWindowMoveResize'));  }  if (data.scriptData["allowWindowStatusChangeChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_window_status_change",      !getCheckboxValue("allowWindowStatusChange"));  }  if (data.scriptData["allowWindowFlipChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_window_flip",      !getCheckboxValue("allowWindowFlip"));  }  if (data.scriptData["allowDocumentCookieSetChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_cookie_set",      !getCheckboxValue("allowDocumentCookieSet"));  }  if (data.scriptData["allowDocumentCookieGetChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_cookie_get",      !getCheckboxValue("allowDocumentCookieGet"));  }   if (data.scriptData["allowImageSrcChangeChanged"].value){    parent.hPrefWindow.setPref("bool", "dom.disable_image_src_set",      !getCheckboxValue("allowImageSrcChange"));  }  if (data.scriptData["allowHideStatusBarChanged"].value) {    parent.hPrefWindow.setPref("bool", "dom.disable_window_open_feature.status",      !getCheckboxValue("allowHideStatusBar"));  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/64fc82bbf852fb868d15a5e8a0f31edc5d7d9a46/pref-scripts.js/clean/browser/components/prefwindow/content/pref-scripts.js