blob: aaeccecbaadada4e18c9884ca2d75b2e5fb22a4a [file] [log] [blame]
<p>Test worker fetch of blocked url. Should print a "PASS" statement.</p>
<div id=result></div>
if (window.testRunner)
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("");
} catch (error) {
try {
// Ditto.
new SharedWorker("");
} catch (error) {