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 464374 bdbfe0cf3358
parent 464373 425b8e0eb6d6
child 464375 3d6d57a8d3d9
push id35716
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:42:17 +0000
treeherdermozilla-central@8ee97c045359 [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.