Bug 791009 part B - fix spelling and logic errors; don't add additional_minidumps to the extra data twice, r=ted

--HG--
extra : rebase_source : 0d46f9a86145092cfe0aac9fd4eee9cc783f94a4
This commit is contained in:
Benjamin Smedberg 2012-09-14 16:37:58 -04:00
parent 364bffc4a2
commit 04d9897727

View File

@ -216,8 +216,6 @@ Submitter.prototype = {
formData.append("upload_file_minidump_"+i.name,
File(i.dump.path));
}
formData.append("additional_minidumps", names.join(","));
}
let self = this;
@ -275,8 +273,8 @@ Submitter.prototype = {
let additionalDumps = [];
if ("additional_minidumps" in reportData) {
let names = reportData.additional_minidumps.split(',');
for (let name in names) {
let [dump, extra] = getPendingMiniDump(this.id + "-" + name);
for (let name of names) {
let [dump, extra] = getPendingMinidump(this.id + "-" + name);
if (!dump.exists()) {
this.notifyStatus(FAILED);
this.cleanup();