summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/crashtests/753162.html
blob: c633488ea25fb3269f346cff5fef1f58950231e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  var frameDoc = document.getElementById("f").contentDocument;
  frameDoc.write("2");
  var f = function(event) {
    frameDoc.removeEventListener("DOMAttrModified", f);
    Math.sin(2.10);
    frameDoc.write("4");
  };
  frameDoc.addEventListener("DOMAttrModified", f);
  frameDoc.write("<html d>");
}

</script>
</head>

<body onload="boom();"><iframe id="f" srcdoc="1"></iframe></body>
</html>