rem: window.openDialog("chrome: 
add: window.openDialog("chrome: 
context: function onAdvancedEdit(){  // First validate data from widgets in the "simpler" property dialog  if (ValidateData())   {    // Set true if OK is clicked in the Advanced Edit dialog    window.AdvancedEditOK = false;    // Open the AdvancedEdit dialog, passing in the element to be edited    //  (the copy named "globalElement")    window.openDialog("chrome://editor/content/EdAdvancedEdit.xul", "_blank", "chrome,close,titlebar,modal", "", globalElement);    if (window.AdvancedEditOK) {      // Copy edited attributes to the dialog widgets:      //  to setup for validation      InitDialog();      // Try to just close the parent dialog as well,      //  but this will do validation first      if (onOK()) {        // I'm not sure why, but calling onOK() from JS doesn't trigger closing        //   automatically as it does when you click on the OK button!        window.close();      }    }    // Should we Cancel the parent dialog if user Cancels in AdvancedEdit?  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d32a214318defcd76a5febb67c07415a7898f3bf/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js