--- a/tests/csp/submitted/mozilla/csp-inline-script.php Thu May 03 14:06:28 2012 -0700
+++ b/tests/csp/submitted/mozilla/csp-inline-script.php Thu May 03 15:12:52 2012 -0700
@@ -1,14 +1,22 @@
<?php
-header("X-WebKit-CSP: script-src 'self'");
-header("X-Content-Seucurity-Policy: script-src 'self'");
-header("Content-Seucurity-Policy: script-src 'self'");
+ header("X-WebKit-CSP: default-src 'self'");
+ header("X-Content-Security-Policy: default-src 'self'");
+ header("Content-Security-Policy: default-src 'self'");
?>
-
<html>
<head>
-<title> No line script </title>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <meta description="Content-Security-Policy Test: default-src: *" />
+ <link rel="author" title="tanvi@mozilla.com" />
+ <title> No inline script </title>
+ <script src="http://www.w3c-test.org/resources/testharness.js"></script>
+ <script src="http://www.w3c-test.org/resources/testharnessreport.js"></script>
</head>
<body>
-<script>alert(foo);</script>
+ <div id=log></div>
+ <script>
+ unsafeScript=false;
+ </script>
+ <script src="assertTrue.php?varName=unsafeScript"></script>
</body>