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 10337 9de6fd3a8f73cc6fc1e43b973da027a7e3c65c75
parent 10336 5a6fd97bbd458e57cf0cde0bffe8cb226c39449c
child 10338 196773fc977cd74c7a138d6eccf60d9d2df0e73e
push id402
push userbugzilla@standard8.plus.com
push dateTue, 13 Mar 2012 21:17:18 +0000
treeherdercomm-beta@d080a8ebf16a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;