Bug 933380 - Fix exception on app close request. r=fabrice
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 31 Oct 2013 22:52:39 -0400
changeset 152926 82546b96471ce0ce1059f0488ae9f3415ee2e676
parent 152925 3b3f094b2c221c4d6eb0e127738d636d28bb1fd0
child 152927 ebe4f507a5ac534dbbe9a5b8503e0be29a33772f
push id3273
push userryanvm@gmail.com
push dateFri, 01 Nov 2013 02:53:13 +0000
treeherderfx-team@82546b96471c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs933380
milestone28.0a1
Bug 933380 - Fix exception on app close request. r=fabrice
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -973,17 +973,17 @@ var WebappsHelper = {
         let id = this.registerInstaller(json);
         shell.sendChromeEvent({
           type: "webapps-ask-install",
           id: id,
           app: json.app
         });
         break;
       case "webapps-close":
-        shell.sendEvent(shell.getContentWindow(), "webapps-close",
+        shell.sendEvent(getContentWindow(), "webapps-close",
           {
             __exposedProps__: { "manifestURL": "r" },
             "manifestURL": json.manifestURL
           });
         break;
     }
   }
 }