Closed
Bug 78450
Opened 24 years ago
Closed 24 years ago
Plugin windows don't work with mouse wheel.
Categories
(Core :: XUL, defect)
Tracking
()
Future
People
(Reporter: markh, Assigned: rods)
Details
Attachments
(3 files)
|
2.05 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.18 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.34 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Comment 2•24 years ago
|
||
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.
Comment 3•24 years ago
|
||
did someone mention 'mousewheel'? (cc: bryner)
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Future
| Reporter | ||
Comment 5•24 years ago
|
||
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.
Comment 6•24 years ago
|
||
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?
| Reporter | ||
Comment 7•24 years ago
|
||
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 :)
Comment 8•24 years ago
|
||
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?].
| Reporter | ||
Comment 9•24 years ago
|
||
'g_hinst' is indeed dead code removal. Any attempt to use it results in link
errors.
| Assignee | ||
Comment 10•24 years ago
|
||
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
| Reporter | ||
Comment 11•24 years ago
|
||
| Reporter | ||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
r=bryner
| Reporter | ||
Comment 14•24 years ago
|
||
*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.
| Reporter | ||
Comment 15•24 years ago
|
||
*** 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.
Description
•