| 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 b5e82af86a71bcc2b997884742fd66c6ae5d288c..ddfb9fe2ae1563a68a2563a02cf16e1fd7a15029 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -13737,8 +13737,9 @@ class HttpRequest extends EventTarget {
|
| }
|
|
|
| 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);
|
|
|