[Webkit-unassigned] [Bug 278804] New: [WebDriver][GLIB] Segfault with connection being closed by empty SetTargetList not related to disconnection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 28 12:46:41 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=278804
Bug ID: 278804
Summary: [WebDriver][GLIB] Segfault with connection being
closed by empty SetTargetList not related to
disconnection
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebDriver
Assignee: webkit-unassigned at lists.webkit.org
Reporter: lmoura at igalia.com
CC: bburg at apple.com
When initializing a session, might an empty target list in `SessionHostGlib.cpp::setTargetList()`. After 282489 at main / bug277341, this function assumes whenever we get an empty target list, it means we lost connection to the RemoteInspectorServer. But we might get empty lists due to the message handler filtering only the "Automation" targets before sending to `setTargetList()`, removing targets like `WebPage`.
This behavior is leading to segfaults inside `setTargetList` due to the scenario above prematurely calling `connectionDidClose()`.
Patch incoming.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240828/2da4a4fd/attachment.htm>
More information about the webkit-unassigned
mailing list