Bug 1200445 - Expose android native apps trough the navigator.mozApps api r=ferjm
☠☠ backed out by c8534ce6a233 ☠ ☠
authorFabrice Desré <fabrice@mozilla.com>
Mon, 14 Sep 2015 12:17:32 -0700
changeset 296760 a1f7f70e87bdd63b24a012c687b830572a514d13
parent 296759 47f27e2a9f26a0ac0b6734e1cb45fb8b4fb7b002
child 296761 b59ab0c1fb373413851dfa347f582b7b423ca8ef
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersferjm
bugs1200445
milestone43.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 1200445 - Expose android native apps trough the navigator.mozApps api r=ferjm
dom/apps/AndroidUtils.jsm
--- a/dom/apps/AndroidUtils.jsm
+++ b/dom/apps/AndroidUtils.jsm
@@ -94,17 +94,17 @@ this.AndroidUtils = {
             appsRegistry.confirmInstall(appData, null, aResolveInstall);
           });
           promises.push(p);
         });
 
         // Wait for all apps to be installed.
         return Promise.all(promises);
       }
-    ).then(appsRegistry._saveApps);
+    ).then(appsRegistry._saveApps.bind(appsRegistry));
   },
 
   observe: function(aSubject, aTopic, aData) {
     let data;
     try {
       data = JSON.parse(aData);
     } catch(e) {
       debug(e);