Backed out changeset 0c21f872515b (bug 1192840) for failure in modified test_csp_reports.js. r=backout
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 13 Apr 2016 19:32:44 +0200
changeset 330918 01eb273e37b6043dd197a539f6d7f99c9eee8ae2
parent 330917 9424f63828ebaf3563cad850ce1cc5f865231f70
child 330919 0a1722feaf7ba7ceed6b35a00f24d04188e497b5
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1192840
milestone48.0a1
backs out0c21f872515b2b49c53bd22b12d8a3e472dbd0b2
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
Backed out changeset 0c21f872515b (bug 1192840) for failure in modified test_csp_reports.js. r=backout
dom/security/test/unit/test_csp_reports.js
--- a/dom/security/test/unit/test_csp_reports.js
+++ b/dom/security/test/unit/test_csp_reports.js
@@ -28,24 +28,16 @@ const REPORT_SERVER_PATH = "/report";
 function makeReportHandler(testpath, message, expectedJSON) {
   return function(request, response) {
     // we only like "POST" submissions for reports!
     if (request.method !== "POST") {
       do_throw("violation report should be a POST request");
       return;
     }
 
-    // check content-type of report is "application/csp-report"
-    var contentType = request.hasHeader("Content-Type")
-                    ? request.getHeader("Content-Type") : undefined;
-    if (contentType !== "application/csp-report") {
-      do_throw("violation report should have the 'application/csp-report' " +
-               "content-type, when in fact it is " + contentType.toString())
-    }
-
     // obtain violation report
     var reportObj = JSON.parse(
           NetUtil.readInputStreamToString(
             request.bodyInputStream,
             request.bodyInputStream.available()));
 
     // dump("GOT REPORT:\n" + JSON.stringify(reportObj) + "\n");
     // dump("TESTPATH:    " + testpath + "\n");