Ignore wrong URIs in securityCheck()
Example: view-source:chrome://browser/content/tabbrowser.xml
This commit is contained in:
parent
bc6912fe03
commit
790d3dfee0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user