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

<html>
<head>
    <script src="../resources/cross-frame-access.js"></script>
</head>
<body>
    <p>Opener Frame</p>
    <p id='accessMe'>FAIL: Access from a window opened with a javascript: URL was denied.</p>
    <script>
        if (window.testRunner) {
            testRunner.dumpAsText();
            testRunner.waitUntilDone();
            testRunner.setPopupBlockingEnabled(false);
        }

        var url = "javascript:\"<html>"
            + "<scr" + "ipt>"
            +     "opener.document.getElementById('accessMe').innerHTML = 'PASS: Access from a window opened with a javascript: URL was allowed!';"
            +     "opener.closeWindowAndNotifyDone(window);"
            + "</scri" + "pt>"
            + "<body>"
            +     "<p>Opened Frame.</p>"
            + "</body>"
            + "</html>\"";

        window.open(url);
    </script>
</body>
</html>