Bug 933380 - Fix exception on app close request. r=fabrice, a=bajaj
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 31 Oct 2013 22:52:39 -0400
changeset 160999 3cc5e2a6780d383975fc5040f8deed8ef777a7e4
parent 160998 112e82a7612ce42b2b121aa010a58354910e9eb3
child 161000 1bd0de861b334dea32310be690a530a92d643175
push id2987
push userryanvm@gmail.com
push dateWed, 06 Nov 2013 20:57:39 +0000
treeherdermozilla-beta@ca693fb76f9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice, bajaj
bugs933380
milestone26.0
Bug 933380 - Fix exception on app close request. r=fabrice, a=bajaj
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -971,17 +971,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;
     }
   }
 }