[Webkit-unassigned] [Bug 71635] The last case in user-drag-element-and-user-select-none.html is failing on WK2 and Chromium
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Nov 6 15:29:27 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=71635
--- Comment #1 from Ryosuke Niwa <rniwa at webkit.org> 2011-11-06 15:29:27 PST ---
The problem is that neither WK2 nor Chromium is notifying EventHandler of mouseup event when the drag ends. WebKit1 Mac port has a special work around for this issue in WebHTMLView draggedImage:endedAt:operation:
// Once the dragging machinery kicks in, we no longer get mouse drags or the up event.
// WebCore expects to get balanced down/up's, so we must fake up a mouseup.
NSEvent *fakeEvent = [NSEvent mouseEventWithType:NSLeftMouseUp
location:windowMouseLoc
modifierFlags:[[NSApp currentEvent] modifierFlags]
timestamp:[NSDate timeIntervalSinceReferenceDate]
windowNumber:[[self window] windowNumber]
context:[[NSApp currentEvent] context]
eventNumber:0 clickCount:0 pressure:0];
[self mouseUp:fakeEvent]; // This will also update the mouseover state.
We probably need a similar work-around in WK2 and Chromium. Alternatively, we could create a fake mouseup event in WebCore layer inside dragSourceEndedAt if it turns out all other ports (Windows, GTK, Qt, etc...) have a similar problem.
--
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