Commit 1f389c96 authored by rjw's avatar rjw
Browse files

Fixed 3043505. Disallows drag drops on originating view.

        * WebView.subproj/WebView.m:
        (-[WebView draggingEntered:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4dd0af3e
2002-09-05 Richard Williamson (Local) <rjw@apple.com>
Fixed 3043505. Disallows drag drops on originating view.
* WebView.subproj/WebView.m:
(-[WebView draggingEntered:]):
2002-09-05 Darin Adler <darin@apple.com>
Update to use the new style of assertions.
......
2002-09-05 Richard Williamson (Local) <rjw@apple.com>
Fixed 3043505. Disallows drag drops on originating view.
* WebView.subproj/WebView.m:
(-[WebView draggingEntered:]):
2002-09-05 Darin Adler <darin@apple.com>
Update to use the new style of assertions.
......
......@@ -142,7 +142,11 @@ - (BOOL) isDocumentHTML
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
{
return [self _web_dragOperationForDraggingInfo:sender];
if([sender draggingSource] != [self documentView] && [self _web_bestURLForDraggingInfo:sender]) {
return NSDragOperationCopy;
} else {
return NSDragOperationNone;
}
}
- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment