cross-frame-iframe-for-history-get-override-test.html 420 Bytes
Newer Older
weinig@apple.com's avatar
weinig@apple.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<html>
<head>
    <script>
        
        window.history.back = function() { return "new back"; }
        window.history.__proto__.forward = function() { return "new forward"; }
        window.history.go = "new go";

        window.onload = function()
        {
            if (window.layoutTestController)
                layoutTestController.globalFlag = true;
        }
    </script>
</head>
<body>
</body>
</html>