content/base/crashtests/610571-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/610571-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<script>
     1.8 +
     1.9 +function boom()
    1.10 +{
    1.11 +  var frame1 = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); frame1.src = "data:text/html,1"; document.body.appendChild(frame1);
    1.12 +  var frame2 = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); frame2.src = "data:text/html,2"; document.body.appendChild(frame2);
    1.13 +  var frame1doc = frame1.contentDocument;
    1.14 +  var frame1root = frame1doc.documentElement;
    1.15 +  frame1root.appendChild(frame2);
    1.16 +  setTimeout(function() { 
    1.17 +    try {
    1.18 +      frame2.contentDocument.q = frame1root.__lookupGetter__("nextSibling");
    1.19 +    } catch(ex) {}
    1.20 +    document.documentElement.removeAttribute("class");
    1.21 +  }, 200);
    1.22 +}
    1.23 +
    1.24 +</script>
    1.25 +</head>
    1.26 +
    1.27 +<body onload="boom();"></body>
    1.28 +</html>
    1.29 +

mercurial