Skip to content

Commit 58d85f6

Browse files
committed
Fix missing SetIdentifierFromFlutterUpdate call in ConvertFlutterUpdate
The identifier field was added to FlutterSemanticsNode2 and SetIdentifierFromFlutterUpdate() was implemented in the 3.41.4 sync, but the method was never called in ConvertFlutterUpdate(), causing the identifier to be silently ignored when building the AX tree. This is used for UI testing with tools like UI Automator, XCUITest, and Appium that query the native accessibility hierarchy.
1 parent 3a3fba3 commit 58d85f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flutter/shell/platform/common/accessibility_bridge.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ void AccessibilityBridge::ConvertFlutterUpdate(const SemanticsNode& node,
292292
SetIntAttributesFromFlutterUpdate(node_data, node);
293293
SetIntListAttributesFromFlutterUpdate(node_data, node);
294294
SetStringListAttributesFromFlutterUpdate(node_data, node);
295+
SetIdentifierFromFlutterUpdate(node_data, node);
295296
SetNameFromFlutterUpdate(node_data, node);
296297
SetValueFromFlutterUpdate(node_data, node);
297298
SetTooltipFromFlutterUpdate(node_data, node);

0 commit comments

Comments
 (0)