Bug 239652

Summary: [iOS] Lookup (for selected word in dictionary) is missing in PDF
Product: WebKit Reporter: harryl.byread
Component: PDFAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, megan_gardner, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

harryl.byread
Reported 2022-04-22 04:11:24 PDT
When WebKit displays PDF files, it uses "PDFHostingViewController" and its view to present the PDF file content on screen. Most user interactions are handled by PDFHostingViewController and this is part of Apple's internal/private SDK. With currently exposed/released properties and interfaces of PDFHostingViewController, it is almost impossible for non-Apple developer to add "Lookup" context menu item to WKWebView viewing PDF content. It is quite useful to users who read PDF files and lookup words with iOS dictionaries with Safari or WebKit browsers. Thanks for looking into this issue.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-04-29 04:12:19 PDT
Brent Fulgham
Comment 2 2022-06-30 10:29:14 PDT
This fix needs to be made outside of the WebKit source code. That work is tracked here: <rdar://54087435> Marking as "RESOLVED | MOVED" since this work is happening in an operating system component outside of WebKit.
Note You need to log in before you can comment on or make changes to this bug.