Bug 193104 - [GLIB] WebDriver: browser close not correctly detected on session close in some cases
Summary: [GLIB] WebDriver: browser close not correctly detected on session close in so...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk, InRadar
Depends on:
Blocks:
 
Reported: 2019-01-03 07:25 PST by Carlos Garcia Campos
Modified: 2019-01-04 03:41 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.85 KB, patch)
2019-01-03 07:28 PST, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff
Patch (1.84 KB, patch)
2019-01-03 07:33 PST, 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 2019-01-03 07:25:44 PST
This happens when the dbus connection is closed right before the response to SendMessageToBackend message is going to be sent. In that case, g_dbus_connection_call async ready handler generates an error before the close signal is emitted. Then the close commands try to handle the error checking if SessionHost::isConnected(), but it still returns true, because the browser is still still alive, but the dbus connection has been closed.
Comment 1 Carlos Garcia Campos 2019-01-03 07:28:16 PST
Created attachment 358252 [details]
Patch
Comment 2 EWS Watchlist 2019-01-03 07:30:05 PST
Attachment 358252 [details] did not pass style-queue:


ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:112:  Extra space before last semicolon. If this should be an empty statement, use { } instead.  [whitespace/semicolon] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Carlos Garcia Campos 2019-01-03 07:33:09 PST
Created attachment 358253 [details]
Patch
Comment 4 Carlos Garcia Campos 2019-01-04 03:34:08 PST
Committed r239606: <https://trac.webkit.org/changeset/239606>
Comment 5 Radar WebKit Bug Importer 2019-01-04 03:41:48 PST
<rdar://problem/47045793>