These functions are only necessary for AccessibilityObjects, not AXIsolatedObjects.
<rdar://problem/106175101>
Created attachment 465272 [details] Patch
Created attachment 465275 [details] Patch
(In reply to Tyler Wilcock from comment #3) > Created attachment 465275 [details] > Patch Also make uses of `performFunctionOnMainThread` typed with `AccessibilityObject*` instead of `AXCoreObject*`. "make uses" -> "make use" or "uses". --- a/Source/WebCore/accessibility/AccessibilityObject.h +++ b/Source/WebCore/accessibility/AccessibilityObject.h - String computedLabel() override; + WEBCORE_EXPORT String computedLabel(); Why it needs WEBCORE_EXPORT, it didn't before in AXCoreObject. - LayoutRect boundingBoxRect() const override { return LayoutRect(); } + virtual LayoutRect boundingBoxRect() const { return LayoutRect(); } return { }; --- a/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp +++ b/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Missing space between ]( void AXIsolatedObject::setSelected(bool value) { - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Dito. void AXIsolatedObject::setSelectedRows(AccessibilityChildrenVector& value) { - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Dito. void AXIsolatedObject::setFocused(bool value) { - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Dito. void AXIsolatedObject::setSelectedText(const String& value) { - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Dito. void AXIsolatedObject::setSelectedTextRange(const PlainTextRange& value) { - performFunctionOnMainThread([&value](AXCoreObject* object) { + performFunctionOnMainThread([&value](AccessibilityObject* object) { Dito. void AXIsolatedObject::increment() { - performFunctionOnMainThread([](AXCoreObject* axObject) { + performFunctionOnMainThread([](AccessibilityObject* axObject) { Dito. void AXIsolatedObject::decrement() { - performFunctionOnMainThread([](AXCoreObject* axObject) { + performFunctionOnMainThread([](AccessibilityObject* axObject) { Dito.
Created attachment 465282 [details] Patch
(In reply to Andres Gonzalez from comment #4) > (In reply to Tyler Wilcock from comment #3) > > Created attachment 465275 [details] > > Patch > > --- a/Source/WebCore/accessibility/AccessibilityObject.h > +++ b/Source/WebCore/accessibility/AccessibilityObject.h > > - String computedLabel() override; > + WEBCORE_EXPORT String computedLabel(); > > Why it needs WEBCORE_EXPORT, it didn't before in AXCoreObject. I'm not entirely sure. Before my patch the function was virtual, which may have implicitly exposed it. Without WEBCORE_EXPORT, we fail to link because WebProcess/Automation/WebAutomationSessionProxy.cpp calls `computedLabel()`.
Committed 261210@main (aa13aa32a983): <https://commits.webkit.org/261210@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465282 [details].