Bug 1118544 - Tweak WebIDE to better support FxOS addons. r=jryans

This commit is contained in:
Alexandre Poirot 2015-01-21 21:07:45 -08:00
Родитель 215a5d600f
Коммит dff4afde44
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -190,6 +190,10 @@ AppValidator.prototype._getOriginURL = function () {
};
AppValidator.prototype.validateLaunchPath = function (manifest) {
// Addons don't use index page (yet?)
if (manifest.role && manifest.role === "addon") {
return promise.resolve();
}
let deferred = promise.defer();
// The launch_path field has to start with a `/`
if (manifest.launch_path && manifest.launch_path[0] !== "/") {

Просмотреть файл

@ -510,6 +510,12 @@ let AppManager = exports.AppManager = {
project.manifest);
}
// Addons don't have any document to load (yet?)
// So that there is no need to run them, installing is enough
if (project.manifest.role && project.manifest.role === "addon") {
return;
}
let {app} = response;
if (!app.running) {
let deferred = promise.defer();