[Webkit-unassigned] [Bug 11323] New: Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 17 02:24:28 PDT 2006


http://bugs.webkit.org/show_bug.cgi?id=11323

           Summary: Link dragging behaviour does not obey
                    WebKitEditableLinkBehavior WebPref
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: Graham.Dennis at gmail.com
                CC: justin.garcia at apple.com


Currently, no editable links can be dragged (as links) if the default UI
delegate's method for
- (unsigned)webView:(WebView *)webView
dragSourceActionMaskForPoint:(NSPoint)point;
is used. For example, if WebKitEditableLinkBehavior (see bug 10338) is set to
WebKitEditableLinkAlwaysLive (the default), although the link is live, it
cannot be dragged.

The way that I would fix this would be to modify -[WebHTMLView
_mayStartDragAtEventLocation:] to make the decision as to whether or not a drag
is possible based on the WebPref and the action mask. However, for this to have
any impact at all, either the default UI delegate needs to be changed to return
WebDragSourceActionAny (instead of checking to see if the clicked element is
editable), or the UI delegate needs to be overridden in the application. From a
compatibility point of view, it would make sense to me not to change the
default UI delegate (as the behaviour of editable links in, for example,
Mail.app would change), however this means that for an app to change the
editable link behaviour they would need to both set the WebPref and override
the UI delegate. I'm not saying this is an onerous task, I just want to know
whether or not the default UI delegate should be changed.

Changing the default UI delegate would have an impact on Mail.app as current
behaviour in (Tiger) Mail is for editable links to be active, but dragging them
just selects the text. Making this change would mean that dragging a link in
the default configuration would drag the link and not select the text.

So, is this a bug and should the default UI delegate change?

This bug follows on from Bug 10338.


-- 
Configure bugmail: http://bugs.webkit.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