Bug 1584014, access PushService object to avoid leak r=lina
authorEmma Malysz <emalysz@mozilla.com>
Thu, 26 Sep 2019 00:29:08 +0000
changeset 495014 b945975a90c5de79061a333457e620bc4acdb877
parent 495013 4ee6e616f5d25df4d14222d7fcacf48cd03cbd70
child 495015 8b8ce4612836d14a658c8c86763cd53a81c54372
push id114131
push userdluca@mozilla.com
push dateThu, 26 Sep 2019 09:47:34 +0000
treeherdermozilla-inbound@1dc1a755079a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslina
bugs1584014
milestone71.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 1584014, access PushService object to avoid leak r=lina Differential Revision: https://phabricator.services.mozilla.com/D47189
browser/components/BrowserGlue.jsm
--- a/browser/components/BrowserGlue.jsm
+++ b/browser/components/BrowserGlue.jsm
@@ -2002,17 +2002,17 @@ BrowserGlue.prototype = {
         "permissions.eventTelemetry.enabled",
         this._togglePermissionPromptTelemetry
       );
       this._togglePermissionPromptTelemetry();
     });
 
     // Begin listening for incoming push messages.
     Services.tm.idleDispatchToMainThread(() => {
-      PushService.ensureReady();
+      PushService.wrappedJSObject.ensureReady();
     });
 
     Services.tm.idleDispatchToMainThread(() => {
       this._recordContentBlockingTelemetry();
     });
 
     // Load the Login Manager data from disk off the main thread, some time
     // after startup.  If the data is required before this runs, for example