js/xpconnect/crashtests/938297.html
author Bobby Holley <bobbyholley@gmail.com>
Sun, 17 Nov 2013 18:44:04 -0800
changeset 169699 96a4652daf8c79e14a0c5eb5ac8e3d7e99af3949
permissions -rw-r--r--
Bug 938297 - Stop using GetContextFromDocument in GetStateObject. r=bz

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>

function boom()
{
    var frame = document.getElementById("f");
    var frameWin = frame.contentWindow;
    var frameDoc = frame.contentDocument;
    frameDoc.write("<body>");
    frameDoc.close();
    frameWin.history.pushState(null, 'title', 'pushState47.html');
    document.body.removeChild(frame);
    frameWin.history.state;
}

</script>
</head>
<body onload="boom();">
<iframe id="f" src="data:text/html,1"></iframe>
</body>
</html>