зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1118544 - Tweak WebIDE to better support FxOS addons. r=jryans
This commit is contained in:
Родитель
215a5d600f
Коммит
dff4afde44
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче