rem: gFilterEditorMsgWindow.domWindow = window; 
add: gFilterEditorMsgWindow.domWindow = window; gFilterEditorMsgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL; 
context: function GetFilterEditorMsgWindow(){  if (!gFilterEditorMsgWindow)  {    var msgWindowContractID = "@mozilla.org/messenger/msgwindow;1";    var nsIMsgWindow = Components.interfaces.nsIMsgWindow;    gFilterEditorMsgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow);    gFilterEditorMsgWindow.domWindow = window;   }  return gFilterEditorMsgWindow;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/6ff991e2898ef85a2e184b23165faa229a6e4a28/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js