blob: aaeccecbaadada4e18c9884ca2d75b2e5fb22a4a [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) {
}
try {
// Ditto.
new SharedWorker("http://example.com/worker.js");
} catch (error) {
}
log("PASS");
</script>
</body>
</html>