Bug 63251 - [WebKit2] Forward focus events to windowless plugins on the windows port.
Summary: [WebKit2] Forward focus events to windowless plugins on the windows port.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: noel gordon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 06:19 PDT by noel gordon
Modified: 2011-07-09 12:47 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.56 KB, patch)
2011-06-23 06:26 PDT, noel gordon
no flags Details | Formatted Diff | Diff
Patch (1.54 KB, patch)
2011-07-08 01:10 PDT, noel gordon
aroben: review+
aroben: commit-queue-
Details | Formatted Diff | Diff
Patch (1.68 KB, patch)
2011-07-08 17:41 PDT, noel gordon
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description noel gordon 2011-06-23 06:19:48 PDT
notImplemented();
Comment 1 noel gordon 2011-06-23 06:26:18 PDT
Created attachment 98341 [details]
Patch
Comment 2 noel gordon 2011-06-23 06:44:25 PDT
Running run-webkit-tests --debug -2 LayoutTests/plugins/mouse-events.html produces
the correct output sometimes for me, but just as often does not.

Either my setup or WebKitTestRunner is unreliable for this test.  First time I've
tried to do a WebKit2 change, perhaps what I'm seeing is normal.

I need to dismantle my VS2005 setup and move to VS2008/10 for work reasons anyway,
and so I'll be unable to test this change once that's done.
Comment 3 noel gordon 2011-07-08 01:10:08 PDT
Created attachment 100089 [details]
Patch

Update after http://trac.webkit.org/changeset/90327
Comment 4 Adam Roben (:aroben) 2011-07-08 12:56:50 PDT
Comment on attachment 100089 [details]
Patch

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

> Source/WebKit2/ChangeLog:10
> +2011-07-08  Noel Gordon  <noel.gordon@gmail.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        [WebKit2] Forward focus events to windowless plugins on the windows port.
> +        https://bugs.webkit.org/show_bug.cgi?id=63251
> +
> +        * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
> +        (WebKit::NetscapePlugin::platformSetFocus):
> +

Please mention what test(s) this is covered by, for posterity's sake.

> Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:316
>      CurrentPluginSetter setCurrentPlugin(this);
>  
> -    notImplemented();
> +    if (m_isWindowed)
> +        return;

Maybe we should put the early return above the CurrentPluginSetter?
Comment 5 Adam Roben (:aroben) 2011-07-08 12:57:34 PDT
Comment on attachment 100089 [details]
Patch

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

>> Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:316
>> +        return;
> 
> Maybe we should put the early return above the CurrentPluginSetter?

I guess there's existing code that does it the way you did.
Comment 6 noel gordon 2011-07-08 17:37:27 PDT
 
> Please mention what test(s) this is covered by, for posterity's sake.

Done.
Comment 7 noel gordon 2011-07-08 17:40:43 PDT
> >> Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:316
> >> +        return;
> > 
> > Maybe we should put the early return above the CurrentPluginSetter?
> 
> I guess there's existing code that does it the way you did.

Yes, I just followed the existing code.
Comment 8 noel gordon 2011-07-08 17:41:34 PDT
Created attachment 100190 [details]
Patch
Comment 9 WebKit Review Bot 2011-07-09 12:47:22 PDT
Comment on attachment 100190 [details]
Patch

Clearing flags on attachment: 100190

Committed r90686: <http://trac.webkit.org/changeset/90686>
Comment 10 WebKit Review Bot 2011-07-09 12:47:29 PDT
All reviewed patches have been landed.  Closing bug.