[Webkit-unassigned] [Bug 10634] -webView:dragDestinationActionMaskForDraggingInfo: is ignored

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Aug 29 17:53:23 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10634





------- Comment #3 from karl.adam at gmail.com  2006-08-29 17:53 PDT -------
After building everything clean and relaunching Xcode, this is not the source
of the problem, just a debugging snafu. Instead it seems what initially thought
was the problem, is the problem. 

IN WebNSViewExtras -_web_dragOperationForDraggingInfo: method, [[sender
draggingPasteboard] _web_bestURL] is called, and _web_bestURL returns nil if it
doesn't know how to display the file type, or handle the schema. So when
[WebView canShowFile:] returns NO, it jumps out, and returns nil thus causing
the original webDrag method to return NSDragOperationNone and ignore the drag
entirely.

I'd submit a patch to just remove the check for canShowFile: since a method
called web_bestURL: shouldn't be concerned with whether or not the view can
show the URL, merely return the most appropriate URL.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list