Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6aa3d2c0520d3bb229a3bf0e914c70a81d5cb41b
      
https://github.com/WebKit/WebKit/commit/6aa3d2c0520d3bb229a3bf0e914c70a81d5cb41b
  Author: Lauro Moura <[email protected]>
  Date:   2025-11-16 (Sun, 16 Nov 2025)

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

  Log Message:
  -----------
  [WebDriver][BiDi] Some browsing context events are sending empty context 
handle field
https://bugs.webkit.org/show_bug.cgi?id=302336

Reviewed by BJ Burg.

This commit ensures we get the right context handle when the frame
generating the event is a main frame, instead of just for child frames.

Covered by existing WebDriver tests.

* Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::effectiveHandleForWebFrameProxy):
(WebKit::WebAutomationSession::documentLoadedForFrame):
(WebKit::WebAutomationSession::loadCompletedForFrame):
(WebKit::WebAutomationSession::navigationStartedForFrame):
(WebKit::WebAutomationSession::navigationCommittedForFrame):
(WebKit::WebAutomationSession::navigationFailedForFrame):
(WebKit::WebAutomationSession::navigationAbortedForFrame):
(WebKit::WebAutomationSession::fragmentNavigatedForFrame):
(WebKit::WebAutomationSession::didCreateFrame):
(WebKit::WebAutomationSession::contextCreatedForFrame):
(WebKit::WebAutomationSession::contextDestroyedForPage):
(WebKit::WebAutomationSession::contextDestroyedForFrame):
(WebKit::WebAutomationSession::handleForWebFrameProxy): Deleted.
* Source/WebKit/UIProcess/Automation/WebAutomationSession.h:

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



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

Reply via email to