зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1220700 - Cannot enable add-ons installed from WebIDE r=ochameau
This commit is contained in:
Родитель
7a01321884
Коммит
06385320ab
|
@ -275,6 +275,8 @@ WebappsActor.prototype = {
|
||||||
aApp.localId = (aId in reg.webapps) ? reg.webapps[aId].localId
|
aApp.localId = (aId in reg.webapps) ? reg.webapps[aId].localId
|
||||||
: reg._nextLocalId();
|
: reg._nextLocalId();
|
||||||
aApp.sideloaded = true;
|
aApp.sideloaded = true;
|
||||||
|
aApp.enabled = true;
|
||||||
|
aApp.blockedStatus = Ci.nsIBlocklistService.STATE_NOT_BLOCKED;
|
||||||
|
|
||||||
reg.webapps[aId] = aApp;
|
reg.webapps[aId] = aApp;
|
||||||
reg.updatePermissionsForApp(aId);
|
reg.updatePermissionsForApp(aId);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||||
|
|
||||||
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||||
"resource://gre/modules/AppConstants.jsm");
|
"resource://gre/modules/AppConstants.jsm");
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче