Merge pull request #348 from Infocatcher/patch-10

Fix missing aEvent in securityCheck()
This commit is contained in:
YUKI "Piro" Hiroshi 2012-08-29 02:34:27 -07:00
commit c8df61797c

View File

@ -966,7 +966,7 @@ catch(e) {
var uris = this.retrieveURLsFromDataTransfer(aEvent.dataTransfer); var uris = this.retrieveURLsFromDataTransfer(aEvent.dataTransfer);
uris.forEach(function(aURI) { uris.forEach(function(aURI) {
if (aURI.indexOf(this.BOOKMARK_FOLDER) != 0) if (aURI.indexOf(this.BOOKMARK_FOLDER) != 0)
this.securityCheck(aURI); this.securityCheck(aURI, aEvent);
}, this); }, this);
var sv = this.treeStyleTab; var sv = this.treeStyleTab;
@ -1029,7 +1029,7 @@ catch(e) {
} }
} }
}, },
securityCheck : function TabbarDND_securityCheck(aURI) securityCheck : function TabbarDND_securityCheck(aURI, aEvent)
{ {
let session = this.treeStyleTab.currentDragSession; let session = this.treeStyleTab.currentDragSession;
let (sourceDoc = session ? session.sourceDocument : null) { let (sourceDoc = session ? session.sourceDocument : null) {