From 4e2865ca5fef78a422db188c8b515b1d298ae87a Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 25 Mar 2010 17:01:59 +0100 Subject: Make backtrace parsing configurable (default: off) --- bugzillaBugTriage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bugzillaBugTriage.js') diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 7eda565..cfc3025 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -95,6 +95,7 @@ var suspiciousComponents = []; var signatureFedoraString = ""; // TODO we should have an array SpecialFlags instead of multiple Boolean // variables +var parseAbrtBacktraces = false; var queryButtonAvailable = false; var upstreamButtonAvailable = false; var logSubmits = false; @@ -147,6 +148,7 @@ loadJSON(jsonDataURL, function(response) { defAssigneeList = response.defaultAssignee; queryButtonAvailable = response.queryButton; upstreamButtonAvailable = response.upstreamButton; + parseAbrtBacktraces = response.parseAbrtBacktraces; logSubmits = response.submitsLogging; newUpstreamBugsURLArray = response.newUpstreamBug; queryUpstreamBugsURLArray = response.queryUpstreamBug; @@ -2140,7 +2142,8 @@ function BzPage(doc) { // Dig out backtrace this.btSnippet = ""; - if (AbrtRE.test(this.title)) { + console.log("parseAbrtBacktraces = " + parseAbrtBacktraces); + if (parseAbrtBacktraces && AbrtRE.test(this.title)) { var notedLabel = this.dok.querySelector("label[for='newcc']"); while (notedLabel.firstChild) { -- cgit