blob: 832734322aeb29f1737b982ca928ae5cdf02e114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function loaded()
{
var theFrame = document.getElementById('lbIframe');
if (theFrame)
document.body.removeChild(theFrame);
var objIframe = document.createElement("iframe");
objIframe.setAttribute('id','lbIframe');
document.body.appendChild(objIframe);
};
</script>
</head>
<body onload="loaded();">
This is a test for 5823684. If onload handlers aggressively remove and create new iframes in a particular way, we would crash because the frames hadn't been installed into the frame tree correctly before the frame tree was being manipulated.<br>
If you do not crash, you have passed this test.<br>
<iframe src="resources/frame-creation-removal-iframe.html"></iframe>
</body>
</html>
|