зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1383338 - await shield recipe runner so recipes have a chance to see if this is first run r=mkelly
MozReview-Commit-ID: BAmWPQ3buaH --HG-- extra : rebase_source : aaf40cda47b857c66181a27a2450f9c9affb27d9
This commit is contained in:
Родитель
5f24fcc67d
Коммит
164fe5998a
|
@ -57,10 +57,10 @@ this.RecipeRunner = {
|
|||
// Run once immediately after the UI is available. Do this before adding the
|
||||
// timer so we can't end up racing it.
|
||||
const observer = {
|
||||
observe: (subject, topic, data) => {
|
||||
observe: async (subject, topic, data) => {
|
||||
Services.obs.removeObserver(observer, UI_AVAILABLE_NOTIFICATION);
|
||||
|
||||
this.run();
|
||||
await this.run();
|
||||
this.registerTimer();
|
||||
prefs.setBoolPref(FIRST_RUN_PREF, false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче