Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 1856c3a7da49090338b273e575e05092e58096d2 https://github.com/WebKit/WebKit/commit/1856c3a7da49090338b273e575e05092e58096d2 Author: Tyler Wilcock <tyle...@apple.com> Date: 2025-07-12 (Sat, 12 Jul 2025)
Changed paths: A LayoutTests/accessibility/mac/index-for-text-markers-svg-graphics-elements-expected.txt A LayoutTests/accessibility/mac/index-for-text-markers-svg-graphics-elements.html M Source/WebCore/accessibility/AccessibilityRenderObject.cpp Log Message: ----------- AX: WebKit should match other browsers, and the main-thread text implementation, and not generate text positions for SVG graphics elements https://bugs.webkit.org/show_bug.cgi?id=295802 rdar://155637541 Reviewed by Joshua Hoffman. This discrepancy was discovered when investigating an infinite word-navigation loop with VoiceOver in which we would constantly cycle between the last two words. This fixes that issue, but is likely not the root cause — invesigation will continue beyond this commit. But this behavior change is right regardless, as it matches other browsers and the WebKit main-thread text implementation. Minimal reproduction: ``` <div style="width: 580px"> <svg> <path d="M0 0" fill="#252526"/> <path d="M1000 1000" fill="#252526"/> <path d="M50 50" fill="#252526"/> <path d="M10 10" fill="#252526"/> <path d="M42 42" fill="#252526"/> <path d="M9999 9999" fill="#252526"/> </svg> <p>The quick fox</p> </div> ``` * LayoutTests/accessibility/mac/index-for-text-markers-svg-graphics-elements-expected.txt: Added. * LayoutTests/accessibility/mac/index-for-text-markers-svg-graphics-elements.html: Added. * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::textRuns): Canonical link: https://commits.webkit.org/297307@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes