mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
Starting from Chromium 134.0.6989.0 (Electron 35.0.0-beta.5), the NativeWidgetMacNSWindow class overrides accessibilityDocument to return the web content URL from the accessibility tree, but doesn't fall back to NSWindow's default behavior when that URL is empty. This broke Electron's setRepresentedFilename() API - the file path was still set on the NSWindow, but no longer exposed via the AXDocument accessibility attribute that screen readers use. This fix adds an accessibilityDocument override in ElectronNSWindow that checks representedFilename first, falling back to Chromium's behavior for web content URLs. Fixes: https://github.com/electron/electron/issues/XXXXX Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>