Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html

Issue 24225002: Don't dispatch events when XHR is set to sync mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert change on network-preflight-options.html Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698