diff --git a/toolkit/components/osfile/_PromiseWorker.jsm b/toolkit/components/osfile/_PromiseWorker.jsm index 6945768f03e6..08a467d307a7 100644 --- a/toolkit/components/osfile/_PromiseWorker.jsm +++ b/toolkit/components/osfile/_PromiseWorker.jsm @@ -10,7 +10,7 @@ this.EXPORTED_SYMBOLS = ["PromiseWorker"]; // The library of promises. -Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this); +Components.utils.import("resource://gre/modules/Promise.jsm", this); /** * An implementation of queues (FIFO). diff --git a/toolkit/components/osfile/osfile_async_front.jsm b/toolkit/components/osfile/osfile_async_front.jsm index 81263077fa7b..2bd02d6abd59 100644 --- a/toolkit/components/osfile/osfile_async_front.jsm +++ b/toolkit/components/osfile/osfile_async_front.jsm @@ -45,7 +45,7 @@ if (OS.Constants.Win) { let Type = OS.Shared.Type; // The library of promises. -Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js", this); +Components.utils.import("resource://gre/modules/Promise.jsm", this); // The implementation of communications Components.utils.import("resource://gre/modules/osfile/_PromiseWorker.jsm", this); diff --git a/toolkit/components/osfile/tests/mochi/main_test_osfile_async.js b/toolkit/components/osfile/tests/mochi/main_test_osfile_async.js index e68f9d100989..dbec46232f73 100644 --- a/toolkit/components/osfile/tests/mochi/main_test_osfile_async.js +++ b/toolkit/components/osfile/tests/mochi/main_test_osfile_async.js @@ -1,7 +1,7 @@ "use strict"; Components.utils.import("resource://gre/modules/osfile.jsm"); -Components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js"); +Components.utils.import("resource://gre/modules/Promise.jsm"); Components.utils.import("resource://gre/modules/Task.jsm"); // The following are used to compare against a well-tested reference