Bug 1530979 - Send custom "marionette-startup-requested" observer notification to start Marionette in Fennec. r=snorp
authorHenrik Skupin <mail@hskupin.info>
Fri, 15 Mar 2019 12:51:07 +0000
changeset 525036 3d6d57a8d3d90efbd48be3f82c40faf8e5cfc7dd
parent 525035 bdbfe0cf3358f6b6eb32d45af7f9f1ab6164f924
child 525037 e79f9f619f035cd2e70058eec48b064ed5c4e1eb
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
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 Fennec. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D23488
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -533,16 +533,21 @@ var BrowserApp = {
       });
 
       InitLater(() => LightWeightThemeWebInstaller.init());
       InitLater(() => CastingApps.init(), window, "CastingApps");
 
       // Bug 778855 - Perf regression if we do this here. To be addressed in bug 779008.
       InitLater(() => SafeBrowsing.init(), window, "SafeBrowsing");
 
+      // Start Marionette after all startup scripts have been run.
+      InitLater(() => {
+        Services.obs.notifyObservers(window, "marionette-startup-requested");
+      });
+
       // This should always go last, since the idle tasks (except for the ones with
       // timeouts) should execute in order. Note that this observer notification is
       // not guaranteed to fire, since the window could close before we get here.
       InitLater(() => {
         Services.obs.notifyObservers(window, "browser-idle-startup-tasks-finished");
       });
     }, {once: true});
   },