Bug 77791 - [GTK] Web content oftens steals focus from other widgets
Summary: [GTK] Web content oftens steals focus from other widgets
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
Depends on:
Reported: 2012-02-03 16:15 PST by Martin Robinson
Modified: 2012-02-20 18:04 PST (History)
4 users (show)

See Also:

Patch (5.03 KB, patch)
2012-02-03 17:15 PST, Martin Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2012-02-03 16:15:43 PST
This is an annoying bug. To reproduce it, load Google in Epiphany and then quickly press "Ctr+L" to re-focus the address bar. The page will steal focus from the address bar shortly thereafter.
Comment 1 Martin Robinson 2012-02-03 16:18:16 PST
Believe it or not this seems to be a regression from 2007. Before that time a widget would only grab focus if it was backed by a real widget. Nowadays it grabs focus no matter what. If there is no real widget, it forces the WebView to grab focus.
Comment 2 Martin Robinson 2012-02-03 16:18:27 PST
Here's the change in question: http://trac.webkit.org/changeset/24963
Comment 3 Martin Robinson 2012-02-03 16:19:39 PST
Another interesting data point is that we were very diligent in making sure this bug also existed in WebKit2.
Comment 4 Martin Robinson 2012-02-03 17:15:19 PST
Created attachment 125451 [details]
Comment 5 WebKit Review Bot 2012-02-20 18:04:14 PST
Comment on attachment 125451 [details]

Clearing flags on attachment: 125451

Committed r108278: <http://trac.webkit.org/changeset/108278>
Comment 6 WebKit Review Bot 2012-02-20 18:04:19 PST
All reviewed patches have been landed.  Closing bug.