rem: msgWindow.domWindow = window; 
add: msgWindow.domWindow = window; msgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL; 
context: function initializeSearchWindowWidgets(){    gFolderPicker = document.getElementById("searchableFolders");    gSearchStopButton = document.getElementById("search-button");    gStatusBar = document.getElementById('statusbar-icon');    hideMatchAllItem();        msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow);    msgWindow.domWindow = window;        msgWindow.statusFeedback = gStatusFeedback;    // functionality to enable/disable buttons using nsSearchResultsController    // depending of whether items are selected in the search results thread pane.    top.controllers.insertControllerAt(0, nsSearchResultsController);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/6ff991e2898ef85a2e184b23165faa229a6e4a28/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js