Bug 1530979 - Send custom "marionette-startup-requested" observer notification to start Marionette in Firefox. r=florian
authorHenrik Skupin <mail@hskupin.info>
Fri, 15 Mar 2019 12:51:05 +0000
changeset 522037 bdbfe0cf3358f6b6eb32d45af7f9f1ab6164f924
parent 522036 425b8e0eb6d60a2b78a79f8948774d2202155122
child 522038 3d6d57a8d3d90efbd48be3f82c40faf8e5cfc7dd
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1530979
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530979 - Send custom "marionette-startup-requested" observer notification to start Marionette in Firefox. r=florian Differential Revision: https://phabricator.services.mozilla.com/D23487
browser/components/BrowserGlue.jsm
--- a/browser/components/BrowserGlue.jsm
+++ b/browser/components/BrowserGlue.jsm
@@ -1720,16 +1720,21 @@ BrowserGlue.prototype = {
       Services.tm.idleDispatchToMainThread(() => {
         LiveBookmarkMigrator.migrate().catch(Cu.reportError);
       });
     }
 
     Services.tm.idleDispatchToMainThread(() => {
       TabUnloader.init();
     });
+
+    // Marionette needs to be initialized as very last step
+    Services.tm.idleDispatchToMainThread(() => {
+      Services.obs.notifyObservers(null, "marionette-startup-requested");
+    });
   },
 
   /**
    * Use this function as an entry point to schedule tasks that need
    * to run once per session, at any arbitrary point in time.
    * This function will be called from an idle observer. Check the value of
    * LATE_TASKS_IDLE_TIME_SEC to see the current value for this idle
    * observer.