Index: LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html b/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html |
index 79ae6b449116a53875149c2301f8a8f7cbaa85c6..ec5b8eaf01722a5e3041457dfe65f0b6e95b318a 100644 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html |
@@ -1,14 +1,18 @@ |
<!DOCTYPE html> |
<html> |
<head> |
- <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src 'self'"> |
+ <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src 'self' 'unsafe-inline'"> |
</head> |
<body> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
- eval("alert('PASS: eval() executed as expected.');"); |
+ try { |
+ eval("alert('PASS: eval() executed as expected.');"); |
+ } catch(e) { |
+ alert("FAIL: eval() threw an exception."); |
+ } |
</script> |
</body> |
</html> |