mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 615bb572c95add74ca4fb9fed4af5269a49cf4ef
This commit is contained in:
parent
b628b6ef8e
commit
0aa76d7524
162 changed files with 2069 additions and 636 deletions
|
@ -0,0 +1,19 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<!-- Content-Security-Policy-Report-Only: script-src 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}} -->
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var t = async_test("Eval is allowed because the CSP is report-only");
|
||||
try {
|
||||
eval("t.done()");
|
||||
} catch {
|
||||
t.step(function() { assert_true(false, "The eval should have execute succesfully"); })
|
||||
}
|
||||
</script>
|
||||
|
||||
<script async defer src="../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27unsafe-inline%27"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,2 @@
|
|||
Set-Cookie: eval-allowed-in-report-only-mode-and-sends-report={{$id:uuid()}}; Path=/content-security-policy/script-src
|
||||
Content-Security-Policy-Report-Only: script-src 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<!-- Content-Security-Policy-Report-Only: script-src 'unsafe-inline' -->
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var t = async_test("Eval is allowed because the CSP is report-only");
|
||||
try {
|
||||
eval("t.done()");
|
||||
} catch {
|
||||
t.step(function() { assert_true(false, "The eval should have execute succesfully"); })
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy-Report-Only: script-src 'unsafe-inline'
|
Loading…
Add table
Add a link
Reference in a new issue