[Webkit-unassigned] [Bug 22998] Setting the drag image during a drag operation does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 26 16:35:42 PST 2008


------- Comment #2 from simon.fraser at apple.com  2008-12-26 16:35 PDT -------
It seems this is by design. The docs
say "When a drag operation begins, you can use the setDragImage method of the
dataTransfer object".

In terms of the implementation, DragController::tryDHTMLDrag() actually creates
a new Clipboard object on every mouse drag, with a policy of ClipboardReadable
or ClipboardTypesReadable. setDragImage() then bails on setting the image for
this Clipboard because of that policy.

If it were possible to change the drag image after the start of the drag, I
think there would have to be some 'same origin' policy to avoid pages changing
the drag images of drags from other documents, or from outside the browser.

Configure bugmail: https://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