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:01:22 -0400
changeset 11317 fb90c6dc325a856d5fd7f9127bfdcfecdb157d7b
parent 11316 f65e5f1b2eb520a777f66f93500f90a3db0d121d
child 11320 ff26dd4c1b8fda0f7d53d099d1f1787ca213ad6f
push id496
push usermconley@mozilla.com
push dateThu, 17 May 2012 21:01:52 +0000
treeherdercomm-beta@fb90c6dc325a [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);