Bug 77657 - NPAPI will not send mouse up events when mouse is outside plugin area
Summary: NPAPI will not send mouse up events when mouse is outside plugin area
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 10:45 PST by Anders Carlsson
Modified: 2012-02-02 11:03 PST (History)
0 users

See Also:


Attachments
Patch (3.55 KB, patch)
2012-02-02 10:50 PST, Anders Carlsson
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2012-02-02 10:45:34 PST
NPAPI will not send mouse up events when mouse is outside plugin area
Comment 1 Anders Carlsson 2012-02-02 10:50:34 PST
Created attachment 125152 [details]
Patch
Comment 2 Andreas Kling 2012-02-02 10:56:46 PST
Comment on attachment 125152 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=125152&action=review

r=me

> Source/WebCore/ChangeLog:9
> +        Export EventHandler::setCapturingMouseEvents.

Typo, setCapturingMouseEventsNode.

> Source/WebKit2/ChangeLog:9
> +        Use EventHandler::setCapturingMouseEvents to ensure we get all the mouse events when the mouse is down.

Ditto.

> Source/WebKit2/WebProcess/Plugins/PluginView.cpp:637
> +        if (currentEvent->type() == WebEvent::MouseDown) {
>              focusPluginElement();
> +            frame()->eventHandler()->setCapturingMouseEventsNode(m_pluginElement.get());
> +        else if (currentEvent->type() == WebEvent::MouseUp)

}}}}}}}}}}}}}}}}}}}}}
Comment 3 Anders Carlsson 2012-02-02 11:03:41 PST
Committed r106572: <http://trac.webkit.org/changeset/106572>