Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-crash-with-invalid-location.html
blobaaeccecbaadada4e18c9884ca2d75b2e5fb22a4a
1 <html>
2 <body>
3 <p>Test worker fetch of blocked url. Should print a "PASS" statement.</p>
4 <div id=result></div>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function log(message)
11 document.getElementById("result").innerHTML += message + "<br>";
14 try {
15 // DumpRenderTree allows a request to this url, but then blocks it
16 // during the "willSendRequest" callback (which caused a crash).
17 // In a browser, this will throw a security exception.
18 new Worker("http://example.com/worker.js");
19 } catch (error) {
22 try {
23 // Ditto.
24 new SharedWorker("http://example.com/worker.js");
25 } catch (error) {
28 log("PASS");
30 </script>
31 </body>
32 </html>