Index: LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html b/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html |
index 05a78ef79d715944be3ae70c8398a97d4dd229c7..d25741a188c3b0bd49ddce9253c5ed96662fc3a3 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html |
+++ b/LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html |
@@ -46,11 +46,11 @@ function stealResponse() |
var req = new XMLHttpRequest; |
req.open("GET", "http://localhost:8000/xmlhttprequest/resources/reply.xml", false); |
-req.onerror = stealResponse; |
try { |
req.send(null); |
error("send did not raise an exception"); |
} catch (ex) { |
+ stealResponse(); |
} |
</script> |
</body> |