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:
Robert Helmer 2017-07-28 13:27:30 -07:00
Родитель 5f24fcc67d
Коммит 164fe5998a
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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);