On Thu, 30 Apr 2026 17:08:36 GMT, Jeremy Wood <[email protected]> wrote:

> On Mac OS this will identify an accessible role as "heading" instead of 
> "header".
> 
> "heading" has a special semantic meaning to VoiceOver (and probably other 
> technologies), and "header" is a Java construct that has no specific meaning 
> in Apple's accessibility models.
> 
> This PR is resubmitting the same branch used for 
> https://github.com/openjdk/jdk/pull/30251 with an additional commit.
> 
> The previous PR failed because `NSAccessibilityHeadingRole` triggered a 
> compiler error on older Mac OS's. This PR manually defines that constant if 
> necessary. I think "AXHeading" was introduced in Mac OS 10.13, so if we're 
> not at least on macOS 10.13: the user will see the less helpful/generic 
> "header" role announced.
> 
> Warning: I do not have an older Mac to test this against, so this is an 
> educated guess.
> 
> (I'm also fine with just closing this PR and unassigning myself from the 
> OpenJDK ticket if folks prefer someone more experienced tackle this someday.)
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

@mickleness from the Backout issue:
> Build failed on macOS 15.7, 15.7.4 and 26.31. 

so your "older mac"  theory does not seem correct.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/31005#issuecomment-4357788224

Reply via email to