Bug 885674 - Alarm API - Delete Alarm API data on app uninstallation (and clear data?) (follow-up). r=nsm

This commit is contained in:
Gene Lian 2013-06-21 17:30:40 +08:00
parent 7f9ede1270
commit b5621eedda

View File

@ -508,7 +508,17 @@ this.AlarmService = {
case "webapps-clear-data":
let params =
aSubject.QueryInterface(Ci.mozIApplicationClearPrivateDataParams);
if (!params) {
debug("Error! Fail to remove alarms for an uninstalled app.");
return;
}
let manifestURL = appsService.getManifestURLByLocalId(params.appId);
if (!manifestURL) {
debug("Error! Fail to remove alarms for an uninstalled app.");
return;
}
this._db.getAll(
manifestURL,
function getAllSuccessCb(aAlarms) {