Closed
Bug 809601
Opened 12 years ago
Closed 12 years ago
Drag and drop event coordinates no longer correct for plugin child windows (gtk)
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: twhitema, Assigned: twhitema)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.15 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
When running Komodo on Mozilla 17.0 we notice that the DOM drag/drop events that originate over the plugin are incorrect (note that Komodo uses a NPAPI plugin for it's text editor) - the events have higher x/y values whose offsets are increased by the distance the plugin is positioned from to the top/left corner of the main nsWindow. It seems that the following change is the cause: https://hg.mozilla.org/mozilla-central/rev/3c6358d51fa5 @@ -3381,180 +3346,16 @@ nsWindow::DispatchDragEvent(PRUint32 aMs - innerMostWidget-> - DispatchDragMotionEvents(dragServiceGTK, nsIntPoint(retx, rety), aTime); was changed to: @@ -5968,50 +5769,100 @@ drag_motion_event_cb(GtkWidget *aWidget, + return nsDragService::GetInstance()-> + ScheduleMotionEvent(innerMostWindow, aDragContext, + nsIntPoint(aX, aY), aTime); and thus it stopped using the special "retx" and "rety" variables that hold the corrected coordinates (in the case of a plugin child window). Note: Asking review from karlt because that's who made the change.
Attachment #679342 -
Flags: review?(karlt)
Comment 1•12 years ago
|
||
Comment on attachment 679342 [details] [diff] [review] Fixes the problem - using retx and rety variables again Thanks very much. I'm a little surprised we get these signals for events over the plugin window. Is the plugin running in the same process as its host?
Attachment #679342 -
Flags: review?(karlt) → review+
Updated•12 years ago
|
Keywords: regression
Assignee | ||
Comment 2•12 years ago
|
||
Yes, Komodo is using an in process plugin in this case.
Comment 3•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3b2f5b980477
Flags: in-testsuite-
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3b2f5b980477
Assignee: nobody → toddw
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•