Bug 620515 IMAP online search fails silently if it needs to log in r=Mnyromyr
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Wed, 09 Mar 2011 23:53:54 +0000
changeset 7294 675814419cd87399d0a12a1568cdb9f49a7e1249
parent 7293 06cf8a4770ac5397f91dbb2a3915247b2851984a
child 7295 27f43f536cb220cac51eebda75687f53cbf1b348
push idunknown
push userunknown
push dateunknown
reviewersMnyromyr
bugs620515
Bug 620515 IMAP online search fails silently if it needs to log in r=Mnyromyr
suite/mailnews/search/SearchDialog.js
--- a/suite/mailnews/search/SearchDialog.js
+++ b/suite/mailnews/search/SearchDialog.js
@@ -313,16 +313,17 @@ function initializeSearchWindowWidgets()
     gFolderPicker = document.getElementById("searchableFolders");
     gSearchStopButton = document.getElementById("search-button");
     gStatusBar = document.getElementById('statusbar-icon');
     hideMatchAllItem();
     
     msgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"]
                           .createInstance(nsIMsgWindow);
     msgWindow.domWindow = window;
+    msgWindow.rootDocShell.allowAuth = true;
     msgWindow.rootDocShell.appType = Components.interfaces.nsIDocShell.APP_TYPE_MAIL;
     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);
 }