| 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 e33d421417b5c54dbd7df861804c9c92101fb578..653e0d0ec5fa1268985571815bd3971f075d89c2 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -12794,8 +12794,9 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" {
|
| }
|
|
|
| xhr.onLoad.listen((e) {
|
| - if (xhr.status >= 200 && xhr.status < 300 ||
|
| - xhr.status == 304 ) {
|
| + // Note: file:// URIs have status of 0.
|
| + if ((xhr.status >= 200 && xhr.status < 300) ||
|
| + xhr.status == 0 || xhr.status == 304) {
|
| completer.complete(xhr);
|
| } else {
|
| completer.completeError(e);
|
|
|