зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1033643 - notify webapps-registry-ready while becoming webapp; r=marco
This commit is contained in:
Родитель
901fcf979b
Коммит
e489aa6107
|
@ -74,10 +74,11 @@ function becomeWebapp(manifestURL, parameters, onBecome) {
|
||||||
// tested application get installed.
|
// tested application get installed.
|
||||||
Services.prefs.setCharPref("webapprt.buildID", WebappRT.config.app.manifestURL);
|
Services.prefs.setCharPref("webapprt.buildID", WebappRT.config.app.manifestURL);
|
||||||
|
|
||||||
// During tests, the webapps registry is already loaded.
|
// During tests, the webapps registry is already loaded,
|
||||||
// The Startup module needs to be notified when the webapps registry
|
// but SystemMessageInternal expects to be notified when the registry
|
||||||
// gets loaded, so we do that now.
|
// start and then when it's ready, so we do that now.
|
||||||
Services.obs.notifyObservers(this, "webapps-registry-start", null);
|
Services.obs.notifyObservers(this, "webapps-registry-start", null);
|
||||||
|
Services.obs.notifyObservers(this, "webapps-registry-ready", null);
|
||||||
|
|
||||||
yield scope.startup(win);
|
yield scope.startup(win);
|
||||||
onBecome();
|
onBecome();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче