[Webkit-unassigned] [Bug 61008] Assertion failed if text field is cleared while drag&drop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 21 20:00:37 PDT 2011


Kaustubh Atrawalkar <kaustubh at motorola.com> changed:

           What    |Removed                     |Added
                 CC|                            |kaustubh at motorola.com

--- Comment #5 from Kaustubh Atrawalkar <kaustubh at motorola.com>  2011-10-21 20:00:37 PST ---
(In reply to comment #4)
> I'm having trouble understanding this change. Is the call to gtk_window_translate_coordinates unnecessary? Are the coordinates correct without it. It's unusual that this would be required for GTK+ 2, but not something similar for GTK+ 3.

AFAIK, In case of GTK+2, when the text is being dragged there is another small window getting created to hold the text being dragged. And for that the Widget we received in this call has to be translated into its toplevel widget co-ordinates which is not the GTK+3 case.

Furthermore, I don't understand how this leads to an assertion failure.

The assert is thrown in this case as the endingSelection does not find it be in Range as the Position returned by dragData created from the point in convertWidgetPointToScreenPoint is not proper.

> I'm not saying the patch is wrong, I just don't grok it.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list