Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Fix TLD check
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jul 9, 2011
1 parent 0610a0b commit 72a9f58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/do.js
Expand Up @@ -85,7 +85,11 @@ SmartRefererSpoofer.prototype = (function () {
throw Components.results.NS_ERROR_DOM_BAD_URI;
}
}
catch (e) { }
catch (e) {
if (e == Components.results.NS_ERROR_DOM_BAD_URI) {
throw e;
}
}
}

ScriptSecurityManager.checkSameOriginURI(fromURI, toURI, false);
Expand Down

0 comments on commit 72a9f58

Please sign in to comment.