rem:  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");  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");   if (!document.getElementById('javascriptEnabled').checked) changeDisabledState(true); 
add:  if (!document.getElementById("javascriptEnabled").checked) changeDisabledState(true); 
context: function Startup(){  try{    document.getElementById('allowWindowOpen').checked = !pref.GetBoolPref("dom.disable_open_during_load");  } catch (e){    //if we get an error, the pref is not existent, we default to true    document.getElementById('allowWindowOpen').checked = true;  }  //if one of the security capability prefs is set, 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");  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");  //if javascript is disabled, disable the checkboxes  if (!document.getElementById('javascriptEnabled').checked) changeDisabledState(true);  parent.hPrefWindow.registerOKCallbackFunc(doOnOk);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/2aaa0fa2ae9b1692d534c1a7f5d8cdfc23654052/pref-scripts.js/buggy/suite/common/pref/pref-scripts.js