<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<iframe sandbox="allow-scripts allow-modals"
        src="data:text/html,<script>
            window.name='alert2';
            console.log(top.alert2 === window ? 'PASS' : 'FAIL');
            </script>"></iframe>
