Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /content-security-policy/navigation/javascript-url-navigation-to-other-win-evaluated-to-string-inherits-csp.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/utils.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#evaluate-a-javascript:-url">
</head>
<body>
<script>
openWindowAssignJavascriptUrlEvaluatedToIframeStringAndCheckViolatedDirective(
{ url: "support/doc-with-csp-frame-src-none-and-report-uri.sub.html" +
"?report_cookie_name=javascript-url-navigation-to-other-win-evaluated-to-string-inherits-csp",
target: "otherWin",
windowFeatures: "",
},
"frame-src 'none'");
</script>
</body>
</html>