<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>
