mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
16 lines
430 B
HTML
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>
|