Bug 713671 addressingWidgetOverlay.js uses non-existent gPromptService r=IanN.
authorPhilip Chee <philip.chee@gmail.com>
Mon, 02 Jan 2012 17:28:32 +0800
changeset 9101 9de6fd3a8f73
parent 9100 5a6fd97bbd45
child 9102 196773fc977c
push id6967
push userphilip.chee@gmail.com
push date2012-01-02 09:29 +0000
Treeherderresults
reviewersIanN
bugs713671
Bug 713671 addressingWidgetOverlay.js uses non-existent gPromptService r=IanN.
suite/mailnews/compose/addressingWidgetOverlay.js
--- a/suite/mailnews/compose/addressingWidgetOverlay.js
+++ b/suite/mailnews/compose/addressingWidgetOverlay.js
@@ -45,30 +45,20 @@ var gNumberOfCols = 0;
 
 var gDragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService();
 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)
-    test_addresses_sequence = sPrefs.getBoolPref("mail.debug.test_addresses_sequence");
-}
-catch (ex) {}
+var test_addresses_sequence = getPref("mail.debug.test_addresses_sequence");
 
 function awGetMaxRecipients()
 {
   return top.MAX_RECIPIENTS;
 }
 
 function awGetNumberOfCols()
 {
@@ -823,17 +813,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;