Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 22bf12a5c4f8478f912cebbb76d80ade42dea598
      
https://github.com/WebKit/WebKit/commit/22bf12a5c4f8478f912cebbb76d80ade42dea598
  Author: Lauro Moura <[email protected]>
  Date:   2025-01-21 (Tue, 21 Jan 2025)

  Changed paths:
    M Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
    M Source/WebKit/UIProcess/WebPageProxy.cpp

  Log Message:
  -----------
  [WebDriver] MessageReceiverMap assertion failure for 
WebAutomationSessionProxy messages in debug builds
https://bugs.webkit.org/show_bug.cgi?id=276266

Reviewed by Darin Adler.

WebAutomationSessionProxy is registered as a global receiver in the
WebProcess, but some of its messages were sent as destination-identified
messages, leading to the assertion failure inside MessageReceiverMap.

This commit changes these messages to be sent without the destination,
so we can still send the message to the process containing the desired
frame, but allowing its global WebAutomationSessionProxy receiver to
handle them.

* Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::resolveChildFrameHandle):
(WebKit::WebAutomationSession::resolveParentFrameHandle):
(WebKit::WebAutomationSession::computeElementLayout):
(WebKit::WebAutomationSession::getComputedRole):
(WebKit::WebAutomationSession::getComputedLabel):
(WebKit::WebAutomationSession::selectOptionElement):
(WebKit::WebAutomationSession::setFilesForInputFileUpload):
(WebKit::WebAutomationSession::viewportInViewCenterPointOfElement):
(WebKit::WebAutomationSession::takeScreenshot):
* Source/WebKit/UIProcess/WebPageProxy.cpp:

Canonical link: https://commits.webkit.org/289203@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