add: } 
context: function Startup(){  data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"];  //If scriptData does not exist, then it is the first time the panel was shown and we default to false   if (!("scriptData" in data)){    var changedList = ["allowWindowOpenChanged", "allowTargetNewChanged",                       "allowWindowMoveResizeChanged", "allowWindowStatusChangeChanged",                       "allowWindowFlipChanged", "allowDocumentCookieSetChanged",                       "allowDocumentCookieGetChanged", "allowImageSrcChangeChanged"];    data.scriptData = [];    for(var run = 0; run < changedList.length; run++ ){      data.scriptData[ changedList[run] ] = [];      data.scriptData[ changedList[run] ].value = false;    }    try{      document.getElementById("allowWindowOpen").checked =         !pref.GetBoolPref("dom.disable_open_during_load");     } catch (e){      //We will only get an error if the preference doesn't exist, when that happens we default to true      document.getElementById("allowWindowOpen").checked = true;    }    try{      document.getElementById("allowTargetNew").checked =         !pref.GetBoolPref("browser.block.target_new_window");    } catch (e){      //We will only get an error if the preference doesn't exist, when that happens we default to true      document.getElementById("allowTargetNew").checked = true;    }    //If one of the security capability prefs is set, then the checkbox becomes unchecked    document.getElementById("allowWindowMoveResize").checked =       getPrefValueForCheckbox("capability.policy.default.Window.resizeTo") &&      getPrefValueForCheckbox("capability.policy.default.Window.innerWidth.set") &&       getPrefValueForCheckbox("capability.policy.default.Window.innerHeight.set") &&      getPrefValueForCheckbox("capability.policy.default.Window.outerWidth.set") &&       getPrefValueForCheckbox("capability.policy.default.Window.outerHeight.set") &&      getPrefValueForCheckbox("capability.policy.default.Window.sizeToContent") &&       getPrefValueForCheckbox("capability.policy.default.Window.resizeBy") &&      getPrefValueForCheckbox("capability.policy.default.Window.screenX.set") &&       getPrefValueForCheckbox("capability.policy.default.Window.screenY.set") &&      getPrefValueForCheckbox("capability.policy.default.Window.moveTo") &&       getPrefValueForCheckbox("capability.policy.default.Window.moveBy");    document.getElementById("allowWindowFlip").checked =       getPrefValueForCheckbox("capability.policy.default.Window.focus");    document.getElementById("allowWindowStatusChange").checked =       getPrefValueForCheckbox("capability.policy.default.Window.status") &&      getPrefValueForCheckbox("capability.policy.default.Window.defaultStatus");    document.getElementById("allowImageSrcChange").checked =       getPrefValueForCheckbox("capability.policy.default.HTMLImageElement.src");    document.getElementById("allowDocumentCookieGet").checked =       getPrefValueForCheckbox("capability.policy.default.HTMLDocument.cookie.get");    document.getElementById("allowDocumentCookieSet").checked =       getPrefValueForCheckbox("capability.policy.default.HTMLDocument.cookie.set");  } else { //not first time it was loaded, get default values from data      document.getElementById("allowWindowOpen").checked = data["allowWindowOpen"].checked;     document.getElementById("allowTargetNew").checked = data["allowTargetNew"].checked;     document.getElementById("allowWindowMoveResize").checked = data["allowWindowMoveResize"].checked;     document.getElementById("allowWindowFlip").checked = data["allowWindowFlip"].checked;     document.getElementById("allowWindowStatusChange").checked = data["allowWindowStatusChange"].checked;     document.getElementById("allowImageSrcChange").checked = data["allowImageSrcChange"].checked;     document.getElementById("allowDocumentCookieSet").checked = data["allowDocumentCookieSet"].checked;     document.getElementById("allowDocumentCookieGet").checked = data["allowDocumentCookieGet"].checked;     document.getElementById("javascriptAllowNavigator").checked = data["javascriptAllowNavigator"].checked;    if (document.getElementById("javascriptAllowMailnews"))       document.getElementById("javascriptAllowMailNews").checked = data["javascriptAllowMailNews"].checked;  }  javascriptEnabledChange();  document.getElementById("AllowList").addEventListener("CheckboxStateChange", onCheckboxCheck, false);  parent.hPrefWindow.registerOKCallbackFunc(doOnOk);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/77950059e261e7726323ff8c49ffcdefd219c659/pref-scripts.js/clean/suite/common/pref/pref-scripts.js