• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<script>
3function openWindow()
4{
5    window.open('resources/crash-when-navigating-away-then-back.html')
6}
7
8if (window.layoutTestController) {
9    layoutTestController.dumpAsText()
10    layoutTestController.waitUntilDone();
11    layoutTestController.setCanOpenWindows();
12} else {
13    document.write('<div id="manual-instructions">Click <a href="javascript:openWindow()">this link</a> twice. A window should open and close twice without crashing.</div>')
14}
15
16function closedWindow()
17{
18    if (window.layoutTestController)
19        setTimeout(openWindow, 100);
20}
21
22</script>
23<body onload="if (window.layoutTestController) openWindow()">
24<div>This tests that loading a page with a manifest, navigating away from the page, and then back does not cause a crash.</div>
25<div id="result">FAILURE - test not completed</div>
26</html>
27</div>
28