Bug 63312 - scrollWheel cocoa events to scrolling DIV elements ignored
Summary: scrollWheel cocoa events to scrolling DIV elements ignored
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Major
Assignee: Nobody
URL: http://www.firebreath.org
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 22:30 PDT by Richard Bateman
Modified: 2022-06-22 22:25 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Bateman 2011-06-23 22:30:44 PDT
We are hosting a WebView in an offscreen NSWindow and rendering to a CGContext as part of a NPAPI plugin. We proxy the events from the browser to the offscreen window and everything works well except for one thing:

When I send a scrollWheel event through the normal event mechanism, I get inconsistent results.  If the page itself is larger than fits in the view it seems that a NSScrollView is created and hosts it; this view scrolls with the proxied scrollWheel cocoa events just fine.  However, when the page fits the bounds and there is a scrolling div inside the page these scrollWheel events are completely ignored.

I have tried doing a hitTest and walking up the tree of superviews, even sending the event to each one, with no success.

The source for the event dispatch code can be found here: https://github.com/firebreath/FireBreath/blob/master/src/libs/WebView/Mac/WebViewMac.mm#L408

This bug is consistent whether the npapi plugin is hosted in firefox, chrome, or safari.

Facebook is looking to roll out a new Photo Upload plugin that will use this functionality on Mac but we are concerned about releasing something where the scroll wheel is completely inoperable. The WebView is used to provide a secure UI area where security-sensitive APIs can be used without any direct connection to the rest of the web page.
Comment 1 Ahmad Saleem 2022-06-22 12:57:00 PDT
NPAPI support is removed from Safari 14 onward and it is not supported in Webkit Builds like WebkitGTK as well. I think this can be marked as "RESOLVED WONTFIX". Thanks!

This bug was happening in NPAPI based plugin (can be valid by URL and Github page of source code mentioned in Comment 01).
Comment 2 Ryosuke Niwa 2022-06-22 22:25:33 PDT
Yup, won't fix.