| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 463656f6b90ec8d6b9581cf3ddc69a50e4b705ef..9f2d4044d8faa3c8e3c0d41093cb9d6febca035a 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -30230,18 +30230,16 @@ class _HttpRequestUtils {
|
|
|
| // Helper for factory HttpRequest.get
|
| static HttpRequest get(String url,
|
| - onSuccess(HttpRequest request),
|
| + onComplete(HttpRequest request),
|
| bool withCredentials) {
|
| final request = new HttpRequest();
|
| request.open('GET', url, true);
|
|
|
| request.withCredentials = withCredentials;
|
|
|
| - // Status 0 is for local XHR request.
|
| request.on.readyStateChange.add((e) {
|
| - if (request.readyState == HttpRequest.DONE &&
|
| - (request.status == 200 || request.status == 0)) {
|
| - onSuccess(request);
|
| + if (request.readyState == HttpRequest.DONE) {
|
| + onComplete(request);
|
| }
|
| });
|
|
|
|
|