bitovi/funcunit

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

オープン

#156 opened on 2016/08/11

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (395 件のフォーク)batch import
bughelp wantedp3

Repository metrics

Stars
 (575 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド