bitovi/funcunit

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

Aberta

#156 aberto em 11 de ago. de 2016

 (0 comentário) (0 reação) (0 responsável)JavaScript (395 forks)batch import
bughelp wantedp3

Métricas do repositório

Stars
 (575 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador