Newer
Older
minerva / Tests / LibWeb / Text / data / history-pushstate-iframe.html
@minerva minerva on 13 Jul 414 bytes Initial commit
<script>
    try {
        const initialHistoryLength = window.history.length;

        history.pushState({}, "hello", "history-pushstate-iframe.html#hello");

        parent.postMessage(
            "history object length has changed by " +
                (window.history.length - initialHistoryLength),
            "*"
        );
    } catch (e) {
        parent.postMessage("ERROR:" + e, "*");
    }
</script>