chromium/third_party/blink/web_tests/http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-sub-frame.html

<html>
<body>
    <p>This tests that a javascript: URL loaded in an iframe has access to its parent's frame</p>
    <iframe id="aFrame" name="aFrame"></iframe>
    <p id='accessMe'>FAIL: Cross frame access from a javascript: URL was denied.</p>
    <script>
        if (window.testRunner) {
            testRunner.dumpAsText();
            testRunner.dumpChildFrames();
            testRunner.waitUntilDone();
        }

        var url = "javascript:\"<html>"
            + "<scr" + "ipt>"
            +     "parent.document.getElementById('accessMe').innerHTML = 'PASS: Cross frame access from a javascript: URL was allowed!';"
            + "</scri" + "pt>"
            + "<body>"
            +     "<p>Inner iframe.</p>"
            + "</body>"
            + "</html>\"";

        var iframe = document.getElementById("aFrame");
        iframe.onload = function() { if (window.testRunner) testRunner.notifyDone() };
        iframe.src = url;
    </script>
</body>
</html>