Bug 829477 - Don't notify the UI if we didn't have crash ID. r=fabrice

Thanks margaret!

--HG--
extra : rebase_source : cde55fa2e2ed892f1f2dd3943122d55dae688e43
This commit is contained in:
Hubert Figuière 2013-01-11 13:53:45 +01:00
Родитель 9409af3746
Коммит 69fa838f1a
1 изменённых файлов: 10 добавлений и 6 удалений

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

@ -121,12 +121,16 @@ var shell = {
}
} catch (e) { }
// Let Gaia notify the user of the crash.
// We can get here if we're just submitting old pending crashes.
// Check that there's a valid crashID so that we only notify the
// user if a crash just happened and not when we OOM. Bug 829477
if (crashID) {
this.sendChromeEvent({
type: "handle-crash",
crashID: crashID,
chrome: isChrome
});
}
},
// this function submit the pending crashes.