[GTK] Web content oftens steals focus from other widgets
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2012 02:04:29 +0000 (02:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2012 02:04:29 +0000 (02:04 +0000)
commit2b13be4bca8edab690bdb0b4be0f132568e872aa
treec5f968669a9d131668fec0afa83cd8339aac6aa8
parent01621916f11dc6ee9904c6efeda2e1cea2d75e52
[GTK] Web content oftens steals focus from other widgets
https://bugs.webkit.org/show_bug.cgi?id=77791

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-02-20
Reviewed by Gustavo Noronha Silva.

Source/WebCore:

* platform/gtk/WidgetGtk.cpp:
(WebCore::Widget::setFocus): No longer do anything special to try
to grab "real" widget focus. This matches the behavior on Qt.
* plugins/gtk/PluginViewGtk.cpp:
(WebCore::PluginView::setFocus): Moved the focus handling to here.
This ensures that behavior for plugins does not change.

Source/WebKit/gtk:

* tests/testwebview.c: Added a WebKit1 test to verify this behavior.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/gtk/WidgetGtk.cpp
Source/WebCore/plugins/gtk/PluginViewGtk.cpp
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/tests/testwebview.c