chromium/third_party/blink/web_tests/http/tests/security/resources/iframe-for-naked-global-object.html

<!DOCTYPE html>
<script>
window.x = 42;

function callback2()
{
    return this.x;
}

function registerCallback()
{
    function callback1() {
        return callback2();
    }

    window.parent.registerCallback(callback1);
}
</script>
<body onload="registerCallback()"></body>