Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2865d793ebdc856dd46f35c214c7cac8e640fe85
      
https://github.com/WebKit/WebKit/commit/2865d793ebdc856dd46f35c214c7cac8e640fe85
  Author: Lauro Moura <[email protected]>
  Date:   2026-08-10 (Mon, 10 Aug 2026)

  Changed paths:
    M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
    M WebDriverTests/TestExpectations.json

  Log Message:
  -----------
  [WebDriver][GLIB] Flaky WPEWebProcess portal crashes in eager JSWindowProxy 
creation
https://bugs.webkit.org/show_bug.cgi?id=321277

Reviewed by Carlos Alberto Lopez Perez.

Since 310527@main, WebAutomationSession::createBrowsingContext calls
WebAutomationSessionProxy::ensureRealmForInitialEmptyDocument, which in
turn tries to create an early JSWindowProxy for the realm. This can lead
to a race in the RemoteInspector initialization, resulting in dbus
critical messages in the portal negotiation.

While this eager JSWindowProxy eager initialization is properly handled
within bug310506, this commit works around this issue by pre-warming the
RemoteInspector on the WebProcess when its address is set (e.g.
automated pages), allowing the configuration to settle before
ensureRealmForInitialEmptyDocument is called.

Also, drive-by gardening of some related issues mistakenly attributed to
this issue.

* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
* WebDriverTests/TestExpectations.json:

Canonical link: https://commits.webkit.org/318898@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to