ladybird/Tests/LibWeb/Text/data/history-pushstate-iframe.html
2025-03-20 11:50:49 +01:00

16 lines
430 B
HTML

<!DOCTYPE html>
<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>