summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/822691.html
blob: 8bc8eb831b45a9fe8e91f268fa7f809f3069d070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  var frameDoc = document.getElementById("f").contentDocument;

  var confusedNode = frameDoc.createTextNode("y");
  confusedNode.__proto__ = document.createTextNode("x");
  confusedNode.setUserData("key", "data", null);
  confusedNode.setUserData("key", "data", null);
}

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