Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
http://bugzilla.opendarwin.org/show_bug.cgi?id=10634
Remove the check for canShowFile: from _web_bestURL: since
it shouldn't be concerned with whether or not the view
can show the URL, merely return the most appropriate URL.
* Misc/WebNSPasteboardExtras.m:
(-[NSPasteboard _web_bestURL]):
* Misc/WebNSViewExtras.m:
(-[NSView _web_dragOperationForDraggingInfo:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16112
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-30 Karl Adam <karladam@yahoo-inc.com>
+
+ Reviewed by Eric and Tim H.
+
+ Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=10634
+
+ Remove the check for canShowFile: from _web_bestURL: since
+ it shouldn't be concerned with whether or not the view
+ can show the URL, merely return the most appropriate URL.
+
+ * Misc/WebNSPasteboardExtras.m:
+ (-[NSPasteboard _web_bestURL]):
+ * Misc/WebNSViewExtras.m:
+ (-[NSView _web_dragOperationForDraggingInfo:]):
+
2006-08-29 Brady Eidson <beidson@apple.com>
Reviewed by Kevin Decker (Sarge)
NSString *file = [files objectAtIndex:0];
BOOL isDirectory;
if([[NSFileManager defaultManager] fileExistsAtPath:file isDirectory:&isDirectory] && !isDirectory){
- if ([WebView canShowFile:file]) {
- return [[NSURL fileURLWithPath:file] _webkit_canonicalize];
- }
+ return [[NSURL fileURLWithPath:file] _webkit_canonicalize];
}
}
}
![[self window] attachedSheet] &&
[sender draggingSource] != self &&
[[sender draggingPasteboard] _web_bestURL]) {
+
return NSDragOperationCopy;
- } else {
- return NSDragOperationNone;
}
+
+ return NSDragOperationNone;
}
- (void)_web_DragImageForElement:(DOMElement *)element