Bug 756239 - YouSendIt password prompt was attaching to compose windows instead of last used windows by default. r+a=bienvenu.
authorMike Conley <mconley@mozilla.com>
Thu, 17 May 2012 17:00:42 -0400
changeset 10828 3931a8792db686d6e5cd1f7863f3bc675d1e8862
parent 10827 5bf0a1a16590aec487c5d5578008a2a74d4d7e8f
child 10829 1edf4f98ec832de66e1693b2ff31c58d04f7edeb
push id539
push usermconley@mozilla.com
push dateThu, 17 May 2012 21:00:55 +0000
treeherdercomm-aurora@3931a8792db6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs756239
Bug 756239 - YouSendIt password prompt was attaching to compose windows instead of last used windows by default. r+a=bienvenu.
mail/components/cloudfile/nsYouSendIt.js
--- a/mail/components/cloudfile/nsYouSendIt.js
+++ b/mail/components/cloudfile/nsYouSendIt.js
@@ -577,17 +577,17 @@ nsYouSendIt.prototype = {
     for each (let loginInfo in logins) {
       if (loginInfo.username == aUsername)
         return loginInfo.password;
     }
     if (aNoPrompt)
       return "";
 
     // OK, let's prompt for it.
-    let win = Services.wm.getMostRecentWindow("msgcompose");
+    let win = Services.wm.getMostRecentWindow(null);
 
     let authPrompter = Services.ww.getNewAuthPrompter(win);
     var password = { value: "" };
     // Use the service name in the prompt text
     let serverUrl = gServerUrl;
     let userPos = gServerUrl.indexOf("//") + 2;
     let userNamePart = encodeURIComponent(this._userName) + '@';
     serverUrl = gServerUrl.substr(0, userPos) + userNamePart + gServerUrl.substr(userPos);