blob: 82ca39d7ac5e54bb396ce142860e580280e54c5a [file] [log] [blame]
<html>
<head>
<script>
var blob = new Blob([]);
var url = null;
var count = 0;
if (!window.gc)
{
window.gc = function()
{
if (window.GCController)
return GCController.collect();
for (var i = 0; i < 10000; i++)
var s = new String("abc");
}
}
function load()
{
if (window.testRunner)
{
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
win = window.open();
if (win.URL)
{
url = win.URL;
win.location = "nothing";
setTimeout(crash, 0);
return;
}
document.body.innerHTML = "PASS";
if (window.testRunner)
testRunner.notifyDone();
}
function crash()
{
gc();
url.createObjectURL(blob);
if (count++ < 5)
{
setTimeout(crash, 0);
return;
}
document.body.innerHTML = "PASS";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body onload="load()">
RUNNING...
</body>
</html>