Port bug 1604366 - Split login manager auth prompt code from DOM/form prompting code. rs=bustage-fix DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 19 Dec 2019 15:44:46 +1300
changeset 37778 992dc71f9c70efb2832ec3e461248bf70aa00289
parent 37777 cd095c8109ff59e6e0701c855a376b845aa076ea
child 37779 262318f613ca9bd7aa9f4144413e255da9e68b18
push id397
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:16:13 +0000
reviewersbustage-fix
bugs1604366
Port bug 1604366 - Split login manager auth prompt code from DOM/form prompting code. rs=bustage-fix DONTBUILD
mailnews/test/resources/alertTestUtils.js
--- a/mailnews/test/resources/alertTestUtils.js
+++ b/mailnews/test/resources/alertTestUtils.js
@@ -349,17 +349,17 @@ var alertUtilsPromptService = {
 };
 
 var alertUtilsWindowWatcher = {
   getNewPrompter(aParent) {
     return alertUtilsPrompts;
   },
 
   getNewAuthPrompter(aParent) {
-    return Cc["@mozilla.org/login-manager/prompter;1"].getService(
+    return Cc["@mozilla.org/login-manager/authprompter;1"].getService(
       Ci.nsIAuthPrompt
     );
   },
 
   QueryInterface: ChromeUtils.generateQI([Ci.nsIWindowWatcher]),
 };
 
 function registerAlertTestUtils() {
@@ -375,11 +375,11 @@ function registerAlertTestUtils() {
 
 // Dummy message window that ensures we get prompted for logins.
 
 var gDummyMsgWindow = Cc["@mozilla.org/messenger/msgwindow;1"].createInstance(
   Ci.nsIMsgWindow
 );
 gDummyMsgWindow instanceof Ci.nsIMsgWindowTest;
 gDummyMsgWindow.setAuthPrompt(
-  Cc["@mozilla.org/login-manager/prompter;1"].getService(Ci.nsIAuthPrompt)
+  Cc["@mozilla.org/login-manager/authprompter;1"].getService(Ci.nsIAuthPrompt)
 );
 gDummyMsgWindow.setPromptDialog(alertUtilsPrompts);