Bug 991723 - After a (caldav) password change multiple password dialogs are shown. r=redDragon, a=Fallen
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 03 Apr 2014 17:08:50 +0200
changeset 16097 710fcab096a8b43e36f83d770d11ea35354d6527
parent 16096 0fc420befbfe6e1baa0a0990a418fe69a15537fd
child 16098 fa9e1c8817a2f9218eff74fc7109466ac2d7285a
push id52
push userryanvm@gmail.com
push dateTue, 08 Apr 2014 13:26:46 +0000
reviewersredDragon, Fallen
bugs991723
Bug 991723 - After a (caldav) password change multiple password dialogs are shown. r=redDragon, a=Fallen
calendar/base/modules/calAuthUtils.jsm
--- a/calendar/base/modules/calAuthUtils.jsm
+++ b/calendar/base/modules/calAuthUtils.jsm
@@ -299,13 +299,16 @@ cal.auth.Prompt.prototype = {
                 aCallback.onAuthAvailable(aContext, aAuthInfo);
             },
 
             onPromptCanceled : function() {
                 aCallback.onAuthCancelled(aContext, true);
             }
         };
 
+
+        let hostKey = (aChannel.URI.host + ":" + aChannel.URI.port + " (" + aAuthInfo.realm + ")");
+
         var asyncprompter = Components.classes["@mozilla.org/messenger/msgAsyncPrompter;1"]
                                       .getService(Components.interfaces.nsIMsgAsyncPrompter);
-        asyncprompter.queueAsyncAuthPrompt(aChannel.URI.spec, false, promptlistener);
+        asyncprompter.queueAsyncAuthPrompt(hostKey, false, promptlistener);
     }
 };