Ignore wrong URIs in securityCheck()

Example: view-source:chrome://browser/content/tabbrowser.xml
This commit is contained in:
Infocatcher 2012-09-01 17:16:19 +04:00
parent bc6912fe03
commit 790d3dfee0

View File

@ -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;