diff --git a/b2g/installer/package-manifest.in b/b2g/installer/package-manifest.in index 7a39d31c7f1..0c3ea0fa4d6 100644 --- a/b2g/installer/package-manifest.in +++ b/b2g/installer/package-manifest.in @@ -784,10 +784,6 @@ bin/components/@DLL_PREFIX@nkgnomevfs@DLL_SUFFIX@ @BINPATH@/components/HelperAppDialog.js @BINPATH@/components/DownloadsUI.js -#ifndef MOZ_WIDGET_GONK -@BINPATH@/components/SimulatorScreen.js -#endif - #ifdef MOZ_SERVICES_FXACCOUNTS @BINPATH@/components/FxAccountsUIGlue.js @BINPATH@/components/services_fxaccounts.xpt diff --git a/b2g/simulator/lib/main.js b/b2g/simulator/lib/main.js index ea5f06e73fe..e27124f3b31 100644 --- a/b2g/simulator/lib/main.js +++ b/b2g/simulator/lib/main.js @@ -6,7 +6,7 @@ const { Cc, Ci, Cu } = require("chrome"); const { SimulatorProcess } = require("./simulator-process"); -const { Promise: promise } = Cu.import("resource://gre/modules/Promise.jsm", {}); +const { Promise } = Cu.import("resource://gre/modules/Promise.jsm", {}); const Self = require("sdk/self"); const System = require("sdk/system"); const { Simulator } = Cu.import("resource://gre/modules/devtools/Simulator.jsm"); @@ -23,12 +23,12 @@ function launch({ port }) { process.remoteDebuggerPort = port; process.run(); - return promise.resolve(); + return Promise.resolve(); } function close() { if (!process) { - return promise.resolve(); + return Promise.resolve(); } let p = process; process = null; diff --git a/b2g/simulator/lib/simulator-process.js b/b2g/simulator/lib/simulator-process.js index 070eefd593f..1836c56ab08 100644 --- a/b2g/simulator/lib/simulator-process.js +++ b/b2g/simulator/lib/simulator-process.js @@ -17,7 +17,7 @@ const Runtime = require("sdk/system/runtime"); const Self = require("sdk/self"); const URL = require("sdk/url"); const Subprocess = require("subprocess"); -const { Promise: promise } = Cu.import("resource://gre/modules/Promise.jsm", {}); +const { Promise } = Cu.import("resource://gre/modules/Promise.jsm", {}); const { rootURI: ROOT_URI } = require('@loader/options'); const PROFILE_URL = ROOT_URI + "profile/"; @@ -112,7 +112,7 @@ exports.SimulatorProcess = Class({ // request a b2g instance kill kill: function() { - let deferred = promise.defer(); + let deferred = Promise.defer(); if (this.process) { this.once("exit", (exitCode) => { this.shuttingDown = false; @@ -125,7 +125,7 @@ exports.SimulatorProcess = Class({ } return deferred.promise; } else { - return promise.resolve(undefined); + return Promise.resolve(undefined); } },