Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate |
| index 078d873b230c53637867d92323a520d0ae3bedda..70667a17474db8d0eac4499fa70a026ed26ad48d 100644 |
| --- a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate |
| @@ -95,8 +95,9 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| } |
| 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) { |
|
Emily Fortuna
2013/02/07 20:55:50
note -- please add in the comments of this method
|
| completer.complete(xhr); |
| } else { |
| completer.completeError(e); |
|
Siggi Cherem (dart-lang)
2013/02/07 21:03:30
not for this CL, but we should also consider wheth
|