Bug 889356 - The redirects functionality appears to fail via pushing the app to the device. r=fabrice, a=leo+
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 22 Jul 2013 09:33:38 -0400
changeset 119787 68fb0a2e0114545778e414de76270b6c00db74e3
parent 119786 1dffc79bfac5639fbbf211ffc75c9c3428c59544
child 119788 cf5aa5393dca70ce523d78babd911465c997b981
push id992
push userryanvm@gmail.com
push dateMon, 22 Jul 2013 13:34:26 +0000
reviewersfabrice, leo
bugs889356
milestone18.1
Bug 889356 - The redirects functionality appears to fail via pushing the app to the device. r=fabrice, a=leo+
b2g/chrome/content/dbg-webapps-actors.js
--- a/b2g/chrome/content/dbg-webapps-actors.js
+++ b/b2g/chrome/content/dbg-webapps-actors.js
@@ -44,18 +44,17 @@ WebappsActor.prototype = {
                                         : reg._nextLocalId();
 
     reg.webapps[aId] = aApp;
     reg.updatePermissionsForApp(aId);
 
     reg._readManifests([{ id: aId }], function(aResult) {
       let manifest = aResult[0].manifest;
       aApp.name = manifest.name;
-      reg._registerSystemMessages(manifest, aApp);
-      reg._registerActivities(manifest, aApp, true);
+      reg.updateAppHandlers(null, manifest, aApp);
       reg._saveApps(function() {
         aApp.manifest = manifest;
         reg.broadcastMessage("Webapps:AddApp", { id: aId, app: aApp });
         reg.broadcastMessage("Webapps:Install:Return:OK",
                              { app: aApp,
                                oid: "foo",
                                requestID: "bar"
                              });