1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/base/crashtests/500328-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<body onload="test();"> 1.7 +<script> 1.8 + function test() { 1.9 + // Test that calling pushState() with a state object which calls 1.10 + // history.back() doesn't crash. We need to make sure that there's at least 1.11 + // one entry in the history before we do anything else. 1.12 + history.pushState(null, ""); 1.13 + 1.14 + x = {}; 1.15 + x.toJSON = { history.back(); return "{a:1}"; }; 1.16 + history.pushState(x, ""); 1.17 + } 1.18 +</script> 1.19 +</body> 1.20 +</html>