Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / window-domurl-crash.html
blobf1a6fdcd79245734d462a4c34792e3863c2fd21d
1 <html>
2 <head>
3 <script>
4 var blob = new Blob([]);
5 var url = null;
6 var count = 0;
8 if (!window.gc)
10 window.gc = function()
12 if (window.GCController)
13 return GCController.collect();
14 for (var i = 0; i < 10000; i++)
15 var s = new String("abc");
19 function load()
21 if (window.testRunner)
23 testRunner.dumpAsText();
24 testRunner.setCanOpenWindows();
25 testRunner.setCloseRemainingWindowsWhenComplete(true);
26 testRunner.waitUntilDone();
28 win = window.open();
29 if (win.URL)
31 url = win.URL;
32 win.location = "nothing";
33 setTimeout(crash, 0);
34 return;
36 document.body.innerHTML = "PASS";
37 if (window.testRunner)
38 testRunner.notifyDone();
41 function crash()
43 gc();
44 url.createObjectURL(blob);
45 if (count++ < 5)
47 setTimeout(crash, 0);
48 return;
50 document.body.innerHTML = "PASS";
51 if (window.testRunner)
52 testRunner.notifyDone();
54 </script>
55 </head>
56 <body onload="load()">
57 RUNNING...
58 </body>
59 </html>