From 72a9f58db7c348a08be9f6dbabed9dde76858f38 Mon Sep 17 00:00:00 2001 From: meh Date: Sat, 9 Jul 2011 12:43:18 +0200 Subject: [PATCH] Fix TLD check --- components/do.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/do.js b/components/do.js index 2f4d214..a7bbf54 100644 --- a/components/do.js +++ b/components/do.js @@ -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);