Scrolling with keyboard arrow would misfunction after speech synthesisation on macOS Sonoma. Steps to reproduce (macOS 14.0 Beta (23A5286g)): * Open Safari, select arbitrary text, right click and select ’Speech’ -> ’Start Speaking' * The page would not be able scroll properly for keyboard arrow events This is an AppKit issue. It happens due to SPI `-[NSApp speakString:]` misleadingly sends `NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification` notification, which causes WebKit to enable enhanced user interface accessibility. Sample code to reproduce this problem: ``` @interface NSApplication () - (void)speakString:(NSString *)string; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // This notification should not be sent. [[NSNotificationCenter defaultCenter] addObserverForName:@"NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification" object:nil queue:[NSOperationQueue currentQueue] usingBlock:^(NSNotification *note) { NSLog(@"%@", note); }]; [NSApp speakString:@“hello world"]; } @end ```
<rdar://problem/111957966>
Thank you for the report! Could you please clarify if this is Sonoma only, and works fine in Safari 16.x? It would also be good to know if this reproduces with Safari Technology Preview on macOS Ventura and/or Monterey. We can do this regression testing ourselves, but data from you would help us stay on the same page. > This is an AppKit issue. Issues outside WebKit need to be reported via https://feedbackassistant.apple.com. We can hold to this one while it's being analyzed, but we cannot track issues outside WebKit in WebKit Bugzilla.
(In reply to Alexey Proskuryakov from comment #2) > Thank you for the report! Could you please clarify if this is Sonoma only, > and works fine in Safari 16.x? It would also be good to know if this > reproduces with Safari Technology Preview on macOS Ventura and/or Monterey. > > We can do this regression testing ourselves, but data from you would help us > stay on the same page. > > > This is an AppKit issue. > > Issues outside WebKit need to be reported via > https://feedbackassistant.apple.com. We can hold to this one while it's > being analyzed, but we cannot track issues outside WebKit in WebKit Bugzilla. Could be reproduced on any build (including Safari, Safari Technology Preview and local WebKit builds) on macOS Sonoma developer beta 3 (23A5286g). Not reproducible on Ventura.