bug 898190 - fix test for bug 888172 to use a valid CSP policy for testing. r=grobinson
authorSid Stamm <sstamm@mozilla.com>
Thu, 25 Jul 2013 17:11:12 -0700
changeset 139968 76fb8f815ac79fc27411848c7055d3e9a14b0e7e
parent 139967 8196c86355bc6ee9a77fc657641075a2587ba70a
child 139977 1d31650caa8f075b1bb67a968ea2273c302b1ee5
push id25009
push usersstamm@mozilla.com
push dateFri, 26 Jul 2013 00:11:36 +0000
treeherdermozilla-central@76fb8f815ac7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgrobinson
bugs898190, 888172
milestone25.0a1
first release with
nightly linux32
76fb8f815ac7 / 25.0a1 / 20130725171558 / files
nightly linux64
76fb8f815ac7 / 25.0a1 / 20130725171558 / files
nightly mac
76fb8f815ac7 / 25.0a1 / 20130725171558 / files
nightly win32
76fb8f815ac7 / 25.0a1 / 20130725171558 / files
nightly win64
76fb8f815ac7 / 25.0a1 / 20130725171558 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 898190 - fix test for bug 888172 to use a valid CSP policy for testing. r=grobinson
content/base/test/test_CSP_bug888172.html
--- a/content/base/test/test_CSP_bug888172.html
+++ b/content/base/test/test_CSP_bug888172.html
@@ -55,24 +55,24 @@ function checkDefaultSrcWithStyleSrc() {
   // last test calls finish
   SimpleTest.finish();
 }
 
 SpecialPowers.pushPrefEnv(
   {'set':[["security.csp.speccompliant", true]]},
   function () {
     document.getElementById('testframe1').src = 'file_CSP_bug888172.sjs?csp=' +
-      escape("Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval'");
+      escape("default-src 'self' 'unsafe-inline' 'unsafe-eval'");
     document.getElementById('testframe1').addEventListener('load', checkDefaultSrcOnly, false);
 
     document.getElementById('testframe2').src = 'file_CSP_bug888172.sjs?csp=' +
-      escape("Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval'; script-src 'self'");
+      escape("default-src 'self' 'unsafe-inline' 'unsafe-eval'; script-src 'self'");
     document.getElementById('testframe2').addEventListener('load', checkDefaultSrcWithScriptSrc, false);
 
     document.getElementById('testframe3').src = 'file_CSP_bug888172.sjs?csp=' +
-      escape("Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self'");
+      escape("default-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self'");
     document.getElementById('testframe3').addEventListener('load', checkDefaultSrcWithStyleSrc, false);
   }
 );
 </script>
 </pre>
 </body>
 </html>