rem: var commonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs); 
add: var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d3733a74488d23b1c54ca4e48f0b8d8f459ca2e7/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js