bitovi/funcunit

F.open() doesn't throw when violating same-origin

Open

#156 geöffnet am 11. Aug. 2016

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (395 Forks)batch import
bughelp wantedp3

Repository-Metriken

Stars
 (575 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

You can't, for example, load google.com from localhost. This fails, but does so silently.

We do catch the error in a try/catch here. We could improve this by checking the error in the catch and if it is a SecurityError, rethrow so the user can see the error.

Chrome and Firefox give a different error message, so detecting this might be tricky.

Contributor Guide