summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/detached-iframe.html
blob: ce6aecf64f20c57f64abd7ac382cad5bd3cb175f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<body onload = "test()">
<p>Test that accessing a detached iframe's applicationCache window property doesn't assert. If you don't see an assert, it passed.</p>
<iframe src="about:blank"></iframe>
<script>
if (window.layoutTestController)
    layoutTestController.dumpAsText();

function test()
{
    var ifr = frames[0];
    document.body.removeChild(document.getElementsByTagName("iframe")[0]);
    ifr.applicationCache;
}
</script>
</body>