Closed Bug 78450 Opened 24 years ago Closed 24 years ago

Plugin windows don't work with mouse wheel.

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 59211
Future

People

(Reporter: markh, Assigned: rods)

Details

Attachments

(3 files)

Plugin windows have no opportunity to deal with mouse wheel messages. The WM_MOUSEWHEEL message is never directed at a plugin window, but always at its parent. The WM_MOUSEWHEEL code in nsWindow.cpp detects that the target of the message is not an nsWindow, and assuming the window is in another application, simply discards it. Attaching a proposed patch. Like bug 75864, it determines if the target window has an nsWindow parent, and if it does, forwards the message directly to the child. If the target window is truly outside the app, it is still ignored. Assigning to Rod and adding av to CC, as it is very similar to bug 75864.
I should mention that the patch also removes an unused and non-existing global variable g_hinst. My first attempt at a patch tried to use this, just to find it does not exist anywhere and will give link errors if referenced. This is obviously not a critical part of the patch, but is just for cleanup.
did someone mention 'mousewheel'? (cc: bryner)
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Dupe of 59211?
Agreed - this is a dupe of bug 59211 - however, this bug has a patch, and the other doesn't. Not sure what the protocol is here, so leaving to someone else to actually mark one of the bugs as a dupe.
I'd go with the one that has working code (but I'll defer to bryner to close out the other one). Is this patch ready to go? Does it just need some r/sr love?
Afraid it does need r/sr love. I don't even know who to approach. That said, it is still ready to go :) ActiveState's Komodo has been running this for some time. Not that that is a _great_ indication, but it is not a bad one :)
I think av and rods are away (or soon to be away), but I think bryner could review this. Not sure who the best person would be for sr=, though. bryner, can you have a look? [by the way, the 'g_hinst' is just additional dead code removal, right?].
'g_hinst' is indeed dead code removal. Any attempt to use it results in link errors.
Yes, this looks ok, but bryner should review it also. (just a nit, put :: in front of the SendMessage) Have hyatt do the super-review. r=rods
r=bryner
*sigh* - the attached patch is no good. It will only work with plugins designed to handle the mouse-wheel. It crashes both the sample plugin and the flash plugin.
*** This bug has been marked as a duplicate of 59211 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: