js/xpconnect/crashtests/754311-iframe.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/crashtests/754311-iframe.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<script type="application/javascript">
     1.7 +
     1.8 +function boom() {
     1.9 +  // Don't crash when transplanting wrappers with cyclic references.
    1.10 +  document.documentElement.dataset.xml = document.documentElement.dataset;
    1.11 +  document.open();
    1.12 +
    1.13 +  // Tell the parent window that we're done.
    1.14 +  window.parent.allDone();
    1.15 +}
    1.16 +
    1.17 +// This needs to do a round-trip through the event loop to work right.
    1.18 +window.onload = function() { setTimeout(boom, 0); };
    1.19 +
    1.20 +</script>
    1.21 +</head>
    1.22 +<body>
    1.23 +</body>
    1.24 +</html>

mercurial