Bug 1519626 - Use application specific string bundle in test_ext_permission_warnings.js. r=robwu,aswan
authorJorg K <jorgk@jorgk.com>
Tue, 15 Jan 2019 10:45:10 +0200
changeset 513906 fd4be420c44fd529177030a2ca02ed8686b5c742
parent 513905 970559b6fcde9a19e47617bdcbb05a1788d17d72
child 513907 c09f185978f44ad4d80842dfcb8e4848d516cfb9
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrobwu, aswan
bugs1519626
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1519626 - Use application specific string bundle in test_ext_permission_warnings.js. r=robwu,aswan
toolkit/components/extensions/test/xpcshell/test_ext_permission_warnings.js
--- a/toolkit/components/extensions/test/xpcshell/test_ext_permission_warnings.js
+++ b/toolkit/components/extensions/test/xpcshell/test_ext_permission_warnings.js
@@ -1,13 +1,18 @@
 "use strict";
 
 let {ExtensionTestCommon} = ChromeUtils.import("resource://testing-common/ExtensionTestCommon.jsm", {});
 
-const bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
+let bundle;
+if (AppConstants.MOZ_APP_NAME == "thunderbird") {
+  bundle = Services.strings.createBundle("chrome://messenger/locale/addons.properties");
+} else {
+  bundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
+}
 const DUMMY_APP_NAME = "Dummy brandName";
 
 async function getManifestPermissions(extensionData) {
   let extension = ExtensionTestCommon.generate(extensionData);
   await extension.loadManifest();
   return extension.manifestPermissions;
 }