From 790d3dfee01448e084b07fefa449e2054320141f Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Sat, 1 Sep 2012 17:16:19 +0400 Subject: [PATCH] Ignore wrong URIs in securityCheck() Example: view-source:chrome://browser/content/tabbrowser.xml --- modules/tabbarDNDObserver.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 9631d300..c56e4b69 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -1040,7 +1040,12 @@ catch(e) { aEvent.stopPropagation(); throw 'Drop of ' + aURI + ' denied: no drag session.'; } - let normalizedURI = this.treeStyleTab.makeURIFromSpec(aURI); + let normalizedURI; + try { + normalizedURI = this.treeStyleTab.makeURIFromSpec(aURI); + } + catch(e) { + } if (!normalizedURI) return; let sourceDoc = session.sourceDocument;