rem:  var outlinerView = gSearchView.QueryInterface(Components.interfaces.nsIOutlinerView); if (outlinerView) 
add:  var treeView = gSearchView.QueryInterface(Components.interfaces.nsITreeView); if (treeView) 
context: function onSearch(){    // set the view.  do this on every search, to    // allow the outliner to reset itself    var outlinerView = gSearchView.QueryInterface(Components.interfaces.nsIOutlinerView);    if (outlinerView)    {      var outliner = GetThreadOutliner();      outliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject).view = outlinerView;    }    gSearchSession.clearScopes();    // tell the search session what the new scope is    if (!gCurrentFolder.isServer && !gCurrentFolder.noSelect)        gSearchSession.addScopeTerm(GetScopeForFolder(gCurrentFolder),                                    gCurrentFolder);    var searchSubfolders = document.getElementById("checkSearchSubFolders").checked;    if (gCurrentFolder && (searchSubfolders || gCurrentFolder.isServer || gCurrentFolder.noSelect))    {        AddSubFolders(gCurrentFolder);    }    // reflect the search widgets back into the search session    saveSearchTerms(gSearchSession.searchTerms, gSearchSession);    try    {      gSearchSession.search(msgWindow);    }    catch(ex)    {       dump("Search Exception\n");    }    // refresh the tree after the search starts, because initiating the    // search will cause the datasource to clear itself}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js