summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_subframe_run_js_if_allowed.html
blob: 3ba970ce84693a8cfcfaaa4ba029c8e3a05223be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=702439

This document is a child frame of a CSP document and the
test verifies that it is permitted to run javascript: URLs
if the parent has a policy that allows them.
-->
<body onload="document.getElementById('a').click()">
<a id="a" href="javascript:parent.javascript_link_ran = true;
                parent.checkResult();">click</a>
</body>
</html>