Bug 1059390 - Store local ID rather than remote ID when submitting crashes through CrashSubmit. r=gps, a=sledru
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Wed, 27 Aug 2014 16:34:00 -0400
changeset 217724 26551f9f6ca18fe6c173d18bd3ba5efcf8fe87c6
parent 217723 dab60baef9a17a9a4a708e99f4174950b43b945f
child 217725 0756d338e9861c8d712057a790c721c6036ba410
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, sledru
bugs1059390
milestone33.0a2
Bug 1059390 - Store local ID rather than remote ID when submitting crashes through CrashSubmit. r=gps, a=sledru
toolkit/crashreporter/CrashSubmit.jsm
--- a/toolkit/crashreporter/CrashSubmit.jsm
+++ b/toolkit/crashreporter/CrashSubmit.jsm
@@ -287,18 +287,17 @@ Submitter.prototype = {
           xhr.status == 200 ? parseKeyValuePairs(xhr.responseText) : {};
         let submitted = !!ret.CrashID;
 
         if (self.processType) {
           // TODO: Use exact crash time?
           let crashTime = new Date();
           let manager = Services.crashmanager;
           manager.addSubmission(self.processType, manager.CRASH_TYPE_CRASH,
-                                submitted, submitted ? ret.CrashID : "",
-                                crashTime);
+                                submitted, self.id, crashTime);
         }
 
         if (submitted) {
           self.submitSuccess(ret);
         }
         else {
            self.notifyStatus(FAILED);
            self.cleanup();