Bug 1009253 - Activities with no choice available are not reporting error r=vingtetun
authorFabrice Desré <fabrice@mozilla.com>
Mon, 12 May 2014 16:30:30 -0700
changeset 202054 ec2169519313df84960278a1d6cf0a5d7488af71
parent 202053 8b13059698ff69b09b7e392d04d54a02e9323bd5
child 202055 1c9f26c654cdc7d4f28dceef4207bd9e5b3abd8b
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs1009253
milestone32.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 1009253 - Activities with no choice available are not reporting error r=vingtetun
b2g/components/ActivitiesGlue.js
--- a/b2g/components/ActivitiesGlue.js
+++ b/b2g/components/ActivitiesGlue.js
@@ -55,17 +55,17 @@ ActivitiesDialog.prototype = {
     });
 
     SystemAppProxy.dispatchEvent(detail);
   },
 
   chooseActivity: function ap_chooseActivity(aOptions, aActivities, aCallback) {
     // B2G does not have an alternate activity system, make no choice and return.
     if (aActivities.length === 0) {
-      aCallback(Ci.nsIActivityUIGlueCallback.WEBAPPS_ACTIVITY, -1);
+      aCallback.handleEvent(Ci.nsIActivityUIGlueCallback.WEBAPPS_ACTIVITY, -1);
       return;
     }
 
     this.activities.push({
       name: aOptions.name,
       list: aActivities,
       callback: aCallback
     });