Bug 188546 - [GTK] MiniBrowser: web view doesn't get the focus when new window is created
Summary: [GTK] MiniBrowser: web view doesn't get the focus when new window is created
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2018-08-14 01:52 PDT by Carlos Garcia Campos
Modified: 2018-08-16 01:16 PDT (History)
3 users (show)

See Also:

Patch (5.03 KB, patch)
2018-08-14 06:12 PDT, Carlos Garcia Campos
mcatanzaro: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2018-08-14 01:52:46 PDT
"User prompts that are spawned from beforeunload event handlers, are dismissed implicitly upon navigation or close window, regardless of the defined user prompt handler."

I think this is causing timeouts in tests:

Comment 1 Carlos Garcia Campos 2018-08-14 06:06:41 PDT
This turned out to be a bug in MiniBrowser, it has nothing to do with WebDriver, nor with beforeunload. The problem is that the affected tests use a popup window, with an entry that is filled with send keys command. The send keys command is failing because in the new window the focus is not in the web view, it's in the toolbar, so key events are sent to the toolbar instead.
Comment 2 Carlos Garcia Campos 2018-08-14 06:12:13 PDT
Created attachment 347069 [details]
Comment 3 Carlos Garcia Campos 2018-08-16 01:16:08 PDT
Committed r234915: <https://trac.webkit.org/changeset/234915>