mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
18 lines
443 B
HTML
18 lines
443 B
HTML
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<body onload="test();">
|
||
|
<script>
|
||
|
function test() {
|
||
|
// Test that calling pushState() with a state object which calls
|
||
|
// history.back() doesn't crash. We need to make sure that there's at least
|
||
|
// one entry in the history before we do anything else.
|
||
|
history.pushState(null, "");
|
||
|
|
||
|
x = {};
|
||
|
x.toJSON = { history.back(); return "{a:1}"; };
|
||
|
history.pushState(x, "");
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|