Bug 239652 - [iOS] Lookup (for selected word in dictionary) is missing in PDF
Summary: [iOS] Lookup (for selected word in dictionary) is missing in PDF
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-22 04:11 PDT by harryl.byread
Modified: 2022-06-30 10:29 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description harryl.byread 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.
Comment 1 Radar WebKit Bug Importer 2022-04-29 04:12:19 PDT
<rdar://problem/92517738>
Comment 2 Brent Fulgham 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.