elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

Http.Error not caught for invalid protocol in Firefox #34

Open absynce opened 6 years ago

absynce commented 6 years ago

I was trying to verify my error branch is working PageLoaded (Err _) so I intentionally used an invalid protocol: "htp".

:heavy_check_mark: In Chrome it's caught in the error branch as expected. :x: In Firefox it throws a JavaScript error: "A network error occurred."

Here's my SSCCE: https://ellie-app.com/brMS86CJwa1/2.

Firefox 56.0 (64-bit) Ubuntu 17.04 Elm 0.18

Checklist

process-bot commented 6 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.