[whatwg/fetch] Passthrough original error response unless there's a security issue in doing so (#352)

https://fetch.spec.whatwg.org/#http-fetch 3.3 currently creates a generic network error. This means browsers display a generic error message if a navigation fails.

Ideally the browser should be able to display more relevant information like "bad certificate", "DNS failure", "You are offline", which I guess involves passing the error response back to the caller (navigation in this case).

@annevk suggests there are cases where this is a security issue, so a TODO is to find out what these are & when we can safely pass the error on.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/352

Received on Wednesday, 3 August 2016 16:59:54 UTC