msgWindow.domWindow = window; 
msgWindow.domWindow = window; msgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL; 
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);}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/6ff991e2898ef85a2e184b23165faa229a6e4a28/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js