[webkit-changes] [WebKit/WebKit] 4e977f: REGRESSION(264706 at main): [ macOS ] TestWebKitAPI.W...
AndresGonzalezApple
noreply at github.com
Thu Jul 20 07:16:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4e977f1f8fe171a22717fa6cad2be42442f9b62d
https://github.com/WebKit/WebKit/commit/4e977f1f8fe171a22717fa6cad2be42442f9b62d
Author: Andres Gonzalez <andresg_22 at apple.com>
Date: 2023-07-20 (Thu, 20 Jul 2023)
Changed paths:
M Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
M Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm
M Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm
Log Message:
-----------
REGRESSION(264706 at main): [ macOS ] TestWebKitAPI.WebKit.AutoFillAvailable is a constant timeout.
https://bugs.webkit.org/show_bug.cgi?id=257756
rdar://110336197
Reviewed by Chris Fleizach.
This test was timing out because it invokes [AutoFillAvailable webProcessPlugIn:didCreateBrowserContextController:] that calls WKAccessibilityFocusedObject, that in turn calls WebKit::WebProcess::accessibilityUIElement. The latter cannot be called this early in creating the page and crashes, thus causing the test to time out.
To avoid this problem and still use WebProcess::accessibilityFocusedUIElement in the accessibility layout tests, this patch reverts the change in 264706 at main to WKAccessibilityFocusedObject. Instead, added WKAccessibilityFocusedUIElement to be used by WTR::AccessibilityController on Mac.
* Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKAccessibilityFocusedObject):
(WKAccessibilityFocusedUIElement):
* Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
* Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityControllerMac.mm:
(WTR::AccessibilityController::focusedElement):
Canonical link: https://commits.webkit.org/266179@main
More information about the webkit-changes
mailing list