Bug 994708 - Part 3: Record submission event for content crashes. r=gps
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 07 Aug 2014 21:52:05 -0700
changeset 198490 531825b43409c30ee30e9b24fb818077c440480d
parent 198489 b261b836ac919a4ab2625e56081362a43509870f
child 198491 dbd45a6fec49b7de087a0b84431025198157a6f8
push id27272
push useremorley@mozilla.com
push dateFri, 08 Aug 2014 14:41:27 +0000
treeherdermozilla-central@96a566fa1599 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs994708
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 994708 - Part 3: Record submission event for content crashes. r=gps
browser/modules/TabCrashReporter.jsm
--- a/browser/modules/TabCrashReporter.jsm
+++ b/browser/modules/TabCrashReporter.jsm
@@ -53,17 +53,18 @@ this.TabCrashReporter = {
   },
 
   submitCrashReport: function (aBrowser) {
     let childID = this.browserMap.get(aBrowser);
     let dumpID = this.childMap.get(childID);
     if (!dumpID)
       return
 
-    if (CrashSubmit.submit(dumpID)) {
+    let contentProcessType = Services.crashmanager.PROCESS_TYPE_CONTENT;
+    if (CrashSubmit.submit(dumpID, { processType: contentProcessType })) {
       this.childMap.set(childID, null); // Avoid resubmission.
     }
   },
 
   reloadCrashedTabs: function () {
     let enumerator = Services.wm.getEnumerator("navigator:browser");
     while (enumerator.hasMoreElements()) {
       let window = enumerator.getNext();