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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 23441013: Attempting to fix IE9 XHR cross domain flakiness. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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:
Download patch
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index d666ba001f0b3378f2ad9e0215458e4f812d36f4..9c25b79bfc23a02f9a0ce94d8f49ab067be2c1da 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -12960,6 +12960,13 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
completer.completeError(e);
}, 1));
+ // IE9 RTM - XDomainRequest issued requests may abort if all event handlers
+ // not specified
+ // http://social.msdn.microsoft.com/Forums/ie/en-US/30ef3add-767c-4436-b8a9-f1ca19b4812e/ie9-rtm-xdomainrequest-issued-requests-may-abort-if-all-event-handlers-not-specified
+ JS('', '#.onprogress = {}', xhr);
+ JS('', '#.ontimeout = {}', xhr);
+ JS('', '#.timeout = Number.MAX_VALUE', xhr);
+
if (sendData != null) {
JS('', '#.send(#)', xhr, sendData);
} else {
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698