rem: var commonDialogsService 
add: var commonDialogsService 
context: function onOk(){    if (isDuplicateFilterNameExists())    {        var commonDialogsService             = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService();        commonDialogsService             = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs);        if (commonDialogsService)        {            commonDialogsService.Alert(window,                gFilterBundle.getString("cannotHaveDuplicateFilterTitle"),                 gFilterBundle.getString("cannotHaveDuplicateFilterMessage")            );        }        return;    }    if (!saveFilter()) return;    // parent should refresh filter list..    // this should REALLY only happen when some criteria changes that    // are displayed in the filter dialog, like the filter name    window.arguments[0].refresh = true;    window.close();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js