Bug 230226

Summary: AX iOS: Make PDFs loaded via <embed> accessible
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, brennan.young, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=229556
https://bugs.webkit.org/show_bug.cgi?id=230167
Attachments:
Description Flags
Testcase none

Description Tyler Wilcock 2021-09-13 11:45:42 PDT
Created attachment 438061 [details]
Testcase

<embed name="plugin" src="file:///path/to/example.pdf" type="application/pdf">

These PDFs are rendered fine, but are not accessible to VoiceOver.

https://bugs.webkit.org/show_bug.cgi?id=229556 fixed this for Mac, but not for iOS.
Comment 1 Radar WebKit Bug Importer 2021-09-13 11:46:10 PDT
<rdar://problem/83065664>
Comment 2 Brennan Young 2022-03-07 05:47:26 PST
Note that only well-formed PDF/UA files contain the semantic information needed to generate an accessibility tree accurately. "Ordinary" PDF files (i.e. those without semantic tags) are likely to fail even in the best implementations.

However, PDF/UA in-browser should generate an accessibility tree. It does not.

This problem is not limited to iOS, and also appears on Mac Safari.

A possible workaround is stymied by another bug (223798) with aria-owns.