Bug 713671 addressingWidgetOverlay.js uses non-existent gPromptService. Branch patch r=Neil a=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Fri, 30 Dec 2011 23:11:29 +0800
changeset 9751 405c38f9cbec
parent 9748 3b8a286fd1b0
child 9752 b30c316ee37f
push id288
push userphilip.chee@gmail.com
push date2011-12-30 15:15 +0000
treeherdercomm-beta@405c38f9cbec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, IanN
bugs713671
Bug 713671 addressingWidgetOverlay.js uses non-existent gPromptService. Branch patch r=Neil a=IanN.
suite/mailnews/compose/addressingWidgetOverlay.js
--- a/suite/mailnews/compose/addressingWidgetOverlay.js
+++ b/suite/mailnews/compose/addressingWidgetOverlay.js
@@ -47,17 +47,16 @@ var gDragService = Components.classes["@
 gDragService = gDragService.QueryInterface(Components.interfaces.nsIDragService);
 var gMimeHeaderParser = null;
 
 /**
  * global variable inherited from MsgComposeCommands.js
  *
  
  var sPrefs;
- var gPromptService;
  var gMsgCompose;
  
  */
 
 var test_addresses_sequence = false;
 
 try {
   if (sPrefs)
@@ -823,17 +822,17 @@ function awRecipientErrorCommand(errItem
 	    Components.interfaces.nsISupportsString);
 	specificErrString = specificError.data;
     } catch (ex) {
     }
     if (specificErrString == "") {
 	specificErrString = "Internal error";
     }
 
-    gPromptService.alert(window, generalErrString, specificErrString);
+    Services.prompt.alert(window, generalErrString, specificErrString);
 }
 
 function awRecipientKeyPress(event, element)
 {
   switch(event.keyCode) {
   case KeyEvent.DOM_VK_UP:
     awArrowHit(element, -1);
     break;