chromium/third_party/blink/web_tests/http/tests/security/resources/referrer-attr-iframe-target.html

<!DOCTYPE html>
<html>
<body>
    <script>
        var hash = document.location.hash;
        if (hash.length > 0)
            hash = hash.substring(1);

        window.parent.postMessage({ "policy": hash, "referrer": document.referrer }, "*");
    </script>
</body>
</html>