-
Notifications
You must be signed in to change notification settings - Fork 6k
macOS: Update platform node when AXNodeData role changes #54364
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell/platform/darwin/macos/framework/Source/FlutterPlatformNodeDelegateMacTest.mm
Show resolved
Hide resolved
shell/platform/darwin/macos/framework/Source/FlutterPlatformNodeDelegateMac.mm
Show resolved
Hide resolved
I kind of wonder if we should jam a debug assertion in --- i/shell/platform/darwin/macos/framework/Source/AccessibilityBridgeMac.mm
+++ w/shell/platform/darwin/macos/framework/Source/AccessibilityBridgeMac.mm
@@ -165,11 +165,12 @@
// If it is a text field, the value change notifications are handled by
// the FlutterTextField directly. Only need to make sure it is the
// first responder.
- FlutterTextField* native_text_field =
- (FlutterTextField*)mac_platform_node_delegate->GetNativeViewAccessible();
+ id native_text_field = mac_platform_node_delegate->GetNativeViewAccessible();
+ FML_DCHECK([native_text_field isKindOfClass:FlutterTextField.class]);
id focused = mac_platform_node_delegate->GetFocus();
if (!focused || native_text_field == focused) {
- [native_text_field startEditing];
+ [(FlutterTextField*)native_text_field startEditing];
}
break;
} Cast at the bottom is technically unnecessary, but nice to catch if we ever renamed |
…152962) flutter/engine@aabd582...206e86e 2024-08-06 [email protected] macOS: Update platform node when AXNodeData role changes (flutter/engine#54364) 2024-08-06 [email protected] Roll Skia from 690c8d946e03 to f04ba9cd0e4b (2 revisions) (flutter/engine#54370) 2024-08-06 [email protected] Roll Dart SDK from 71e84a69ce6d to dedfa3393296 (1 revision) (flutter/engine#54354) 2024-08-06 [email protected] Roll Skia from a15e5cfe046c to 690c8d946e03 (1 revision) (flutter/engine#54369) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152962) flutter/engine@aabd582...206e86e 2024-08-06 [email protected] macOS: Update platform node when AXNodeData role changes (flutter/engine#54364) 2024-08-06 [email protected] Roll Skia from 690c8d946e03 to f04ba9cd0e4b (2 revisions) (flutter/engine#54370) 2024-08-06 [email protected] Roll Dart SDK from 71e84a69ce6d to dedfa3393296 (1 revision) (flutter/engine#54354) 2024-08-06 [email protected] Roll Skia from a15e5cfe046c to 690c8d946e03 (1 revision) (flutter/engine#54369) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152962) flutter/engine@aabd582...206e86e 2024-08-06 [email protected] macOS: Update platform node when AXNodeData role changes (flutter/engine#54364) 2024-08-06 [email protected] Roll Skia from 690c8d946e03 to f04ba9cd0e4b (2 revisions) (flutter/engine#54370) 2024-08-06 [email protected] Roll Dart SDK from 71e84a69ce6d to dedfa3393296 (1 revision) (flutter/engine#54354) 2024-08-06 [email protected] Roll Skia from a15e5cfe046c to 690c8d946e03 (1 revision) (flutter/engine#54369) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fixes flutter/flutter#151428
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.