content/base/test/csp/file_subframe_run_js_if_allowed.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/csp/file_subframe_run_js_if_allowed.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +<html>
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=702439
     1.7 +
     1.8 +This document is a child frame of a CSP document and the
     1.9 +test verifies that it is permitted to run javascript: URLs
    1.10 +if the parent has a policy that allows them.
    1.11 +-->
    1.12 +<body onload="document.getElementById('a').click()">
    1.13 +<a id="a" href="javascript:parent.javascript_link_ran = true;
    1.14 +                parent.checkResult();">click</a>
    1.15 +</body>
    1.16 +</html>

mercurial