Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Bug 820206 - Validate "Webapps:*" message parameters in the parent proce... #7572

Merged
merged 1 commit into from over 1 year ago

2 participants

Dale  Harvey Gene Lian
Dale  Harvey
Collaborator

...ss (part 2, call .uninstall() from mozIDOMApplicationMgmt in Gaia). r=sicking, a=blocking-basecamp

Gene Lian Bug 820206 - Validate "Webapps:*" message parameters in the parent pr…
…ocess (part 2, call .uninstall() from mozIDOMApplicationMgmt in Gaia). r=sicking, a=blocking-basecamp
179fb88
Dale  Harvey daleharvey merged commit df38c1b into from
Dale  Harvey daleharvey closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 2 authors.

Jan 11, 2013
Gene Lian Bug 820206 - Validate "Webapps:*" message parameters in the parent pr…
…ocess (part 2, call .uninstall() from mozIDOMApplicationMgmt in Gaia). r=sicking, a=blocking-basecamp
179fb88
This page is out of date. Refresh to see the latest.
2  apps/homescreen/js/homescreen.js
@@ -84,7 +84,7 @@ const Homescreen = (function() {
84 84
       var confirm = {
85 85
         callback: function onAccept() {
86 86
           ConfirmDialog.hide();
87  
-          app.uninstall();
  87
+          navigator.mozApps.mgmt.uninstall(app);
88 88
         },
89 89
         applyClass: 'danger'
90 90
       };
2  apps/settings/js/apps.js
@@ -323,7 +323,7 @@ var ApplicationsList = {
323 323
     var name = new ManifestHelper(this._displayedApp.manifest).name;
324 324
 
325 325
     if (confirm(_('uninstallConfirm', {app: name}))) {
326  
-      this._displayedApp.uninstall();
  326
+      navigator.mozApps.mgmt.uninstall(this._displayedApp);
327 327
       this._displayedApp = null;
328 328
     }
329 329
   },
2  tests/atoms/gaia_apps.js
@@ -197,7 +197,7 @@ var GaiaApps = {
197 197
    */
198 198
   uninstallWithName: function(name) {
199 199
     GaiaApps.locateWithName(name, function uninstall(app) {
200  
-      app.uninstall();
  200
+      navigator.mozApps.mgmt.uninstall(app);
201 201
       marionetteScriptFinished(false);
202 202
     });
203 203
   }
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.