summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/crash-when-navigating-away-then-back.html
blob: 28bbeb36d70d2ae6d16627290176a7e8ea6a3a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html manifest="crash-when-navigating-away-then-back.manifest">
<script>

function cached()
{
    window.close();
    window.opener.closedWindow();
}

function noupdate()
{
    window.opener.document.getElementById('result').innerHTML = 'SUCCESS';
    window.close();
    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

applicationCache.addEventListener('cached', cached, false);
applicationCache.addEventListener('noupdate', noupdate, false);

</script>
</html>