Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 095da143f9d08fb0642f1623774d7aa724094ac3
      
https://github.com/WebKit/WebKit/commit/095da143f9d08fb0642f1623774d7aa724094ac3
  Author: Lauro Moura <[email protected]>
  Date:   2025-09-08 (Mon, 08 Sep 2025)

  Changed paths:
    M Source/WebDriver/Session.cpp

  Log Message:
  -----------
  Check and protect WeakPtr access inside Session code
https://bugs.webkit.org/show_bug.cgi?id=297165

Reviewed by Darin Adler.

Guard the WebSocketServer reference with a protected local RefPtr
instead of directly accessing the WeakPtr.

Also, a couple of related drive-by fixes:

- Adding check for the result of a json->getObject operation, to
avoid another potential segfault.
- Avoid potential bad optional access when processing messages on the
  driver after closing the current top level context. As we don't
  support subscribing to specific contexts yet, we can skip passing a
  context to the BiDi event check.

* Source/WebDriver/Session.cpp:
(WebDriver::Session::dispatchBidiMessage):
(WebDriver::Session::emitEvent):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to