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 153109 82546b96471ce0ce1059f0488ae9f3415ee2e676
parent 153108 3b3f094b2c221c4d6eb0e127738d636d28bb1fd0
child 153110 ebe4f507a5ac534dbbe9a5b8503e0be29a33772f
push id25568
push userryanvm@gmail.com
push dateFri, 01 Nov 2013 18:51:39 +0000
treeherdermozilla-central@ad2a5a4f53ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs933380
milestone28.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 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;
     }
   }
 }