add:  var instApply = getPrefSafe("browser.preferences.instantApply", false);  var features = "chrome,titlebar,toolbar,centerscreen," + (instApply ? "dialog=no" : "modal");  var url = "chrome:  
context: function openPreferences() {    // Check to see if the prefwindow is already open    var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]                       .getService(Components.interfaces.nsIWindowMediator);    var win = wm.getMostRecentWindow("Calendar:Preferences");    var url = "chrome://calendar/content/preferences/preferences.xul";    var features = "chrome,titlebar,toolbar,centerscreen,dialog=no";    if (win) {        win.focus();    } else {        openDialog(url, "Preferences", features);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0e0b7c711307b6cbe2a078d9a296bd43cd8a960e/calendar.js/buggy/calendar/resources/content/calendar.js