Bug 1009253 - Activities with no choice available are not reporting error r=vingtetun

This commit is contained in:
Fabrice Desré 2014-05-12 16:30:30 -07:00
Родитель 946aa82c46
Коммит 81962f0be1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -60,7 +60,7 @@ ActivitiesDialog.prototype = {
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;
}