Bug 1617371 - fix locale lookup for mozmill.jsm. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Sat, 22 Feb 2020 17:29:31 +0200
changeset 37410 95dc8118d884b1704f06ffa6892e9749820eb7eb
parent 37409 f141b2e4803fa87657179edce4e25e52ad684f07
child 37411 423c84a5eae7ff2ad3dc3e28e5d7fee3be81da21
push id2566
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:20:31 +0000
treeherdercomm-beta@a352facfa0a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1617371
Bug 1617371 - fix locale lookup for mozmill.jsm. rs=bustage-fix
mail/test/browser/shared-modules/mozmill.jsm
--- a/mail/test/browser/shared-modules/mozmill.jsm
+++ b/mail/test/browser/shared-modules/mozmill.jsm
@@ -92,19 +92,17 @@ if (platform == "winnt") {
   isWindows = true;
 }
 if (platform == "linux") {
   isLinux = true;
 }
 
 var appInfo = Services.appinfo;
 
-var locale = Cc["@mozilla.org/chrome/chrome-registry;1"]
-  .getService(Ci.nsIXULChromeRegistry)
-  .getSelectedLocale("global");
+var locale = Services.locale.requestedLocale;
 
 var applicationDictionary = {
   "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}": "SeaMonkey",
   "{3550f703-e582-4d05-9a08-453d09bdfdc6}": "Thunderbird",
 };
 var Application = applicationDictionary[appInfo.ID];
 
 function cleanQuit() {