js/xpconnect/crashtests/515726-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/crashtests/515726-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<script>
     1.7 +
     1.8 +function boom()
     1.9 +{
    1.10 +  var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    1.11 +
    1.12 +  document.documentElement.appendChild(frame);
    1.13 +  var framedoc = frame.contentDocument;
    1.14 +  document.documentElement.removeChild(frame);
    1.15 +
    1.16 +  framedoc.removeChild(framedoc.documentElement);
    1.17 +  framedoc.appendChild(frame);
    1.18 +
    1.19 +  try { frame.appendChild(undefined); } catch(e) { }
    1.20 +
    1.21 +  document.removeChild(document.documentElement);
    1.22 +  document.appendChild(frame);
    1.23 +}
    1.24 +
    1.25 +</script>
    1.26 +</head>
    1.27 +
    1.28 +<body onload="boom();"></body>
    1.29 +</html>

mercurial