Bug 258292

Summary: AX: Inconsistent screen reader behavior when entering the web area of an iframe
Product: WebKit Reporter: arvinhjt0718
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   

Description arvinhjt0718 2023-06-19 20:11:40 PDT
We have discovered an accessibility issue while testing our software, Tinymce's Preview Plugin, which interacts with various browsers that utilise the WebKit and Chromium engine

The issue arises when navigating the Preview plugin's web area using screen readers, such as VoiceOver on Mac. The reader needs to indicate that the user is in the web area. This results in users needing help understanding their current position within the webpage.

This problem was replicated on multiple platforms and browsers, including Safari, Chrome, and Firefox on both MacOS and Windows. A stripped-down version of the iframe replicating the issue can be found at: https://fiddle.tiny.cloud/GAiaab.

After thorough testing, the issue resides in the interaction between screen readers and the browsers rather than being specific to our software.

Steps to Reproduce:

Create content in Tinymce
Open File -> Preview
Activate Voiceover on Mac (Cmd+F5)
Navigate to the frame of the Preview screen (Tab key)
Enter the web area of Preview (Ctrl+Option+Shift+Down Arrow)

Expected Results:
Upon entering the web area, the screen reader should announce: "You are currently in a web area on a Text Element" or anything that mentions the inner content.

Actual Results:
The screen reader does not read anything when initially entering the web area.
Comment 1 Radar WebKit Bug Importer 2023-06-19 20:11:50 PDT
<rdar://problem/111019218>
Comment 2 arvinhjt0718 2023-06-19 20:20:14 PDT
Clarification on Steps to Reproduce, the previous one provided is on default fiddle. To use the link, follow the steps below:

Double-click on the text "test"
Activate Voiceover on Mac (Cmd+F5)
Navigate to the frame of the Preview screen (Tab key)
Enter the web area of Preview (Ctrl+Option+Shift+Down Arrow)
Comment 3 arvinhjt0718 2023-06-21 19:42:09 PDT
Sorry for the confusion the previous description may cause, to clarify the issue, the voiceover behave differently and inconsistent on the same browser, different system. 

**The best possible behaviour is recording on Chrome, MacOS 14 recording. Where the voiceover announce `in frame test` and `in text test`, or Safari MacOS 13, where it announce `in text test` the first time the keyboard combo is pressed**

**The expected behaviour is recording Chrome, MacOS 13, it announce `you are currently inside text element....`, or FF and Safari, MacOS 14**

Below is the test recording on MacOS 13.4.1 and MacOS 14.0 beta 2, with Safari, FF, Chrome on the latest version on Apple silicon device.

https://drive.google.com/drive/folders/1pCrpVETlSd10J3BefU9SVLYQY_KMeGeY?usp=sharing