blob: 776019c069aa5646be3b8463fe75d3e37fdb1ceb [file] [log] [blame]
<html>
<body>
<p>Test worker fetch of blocked url. Should print a "PASS" statement.</p>
<div id=result></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
try {
// DumpRenderTree allows a request to this url, but then blocks it
// during the "willSendRequest" callback (which caused a crash).
// In a browser, this will throw a security exception.
new Worker("http://example.com/worker.js");
} catch (error) {
}
log("PASS");
</script>
</body>
</html>