diff --git a/browser/components/translation/test/browser_translation_exceptions.js b/browser/components/translation/test/browser_translation_exceptions.js index d0c7ba4551a..30e3ced4087 100644 --- a/browser/components/translation/test/browser_translation_exceptions.js +++ b/browser/components/translation/test/browser_translation_exceptions.js @@ -6,7 +6,8 @@ let tmp = {}; Cu.import("resource:///modules/translation/Translation.jsm", tmp); -let {Translation} = tmp; +Cu.import("resource://gre/modules/Promise.jsm", tmp); +let {Translation, Promise} = tmp; const kLanguagesPref = "browser.translation.neverForLanguages"; const kShowUIPref = "browser.translation.ui.show"; diff --git a/toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js b/toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js index 35e57e53f69..1799adcdda0 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js +++ b/toolkit/mozapps/extensions/test/browser/browser_cancelCompatCheck.js @@ -14,6 +14,7 @@ const PREF_METADATA_LASTUPDATE = "extensions.getAddons.cache.lastUpdate"; let repo = {}; Components.utils.import("resource://gre/modules/addons/AddonRepository.jsm", repo); +Components.utils.import("resource://gre/modules/Promise.jsm", this); /** * Test add-ons: