Bug 243789

Summary: Integrate PDF.js with built-in find-in-page functionality
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: PDFAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: mcatanzaro, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Tim Nguyen (:ntim) 2022-08-10 09:52:18 PDT
rdar://88457582

Right now, find-in-page can only search for the rendered portion.

Few notes:
- We can register a custom DefaultExternalServices that can update the find count by parent.postMessage(..., "*")
- We can use PDFDocument::postMessageToIframe to notify that find state has changed, Firefox does something similar: https://searchfox.org/mozilla-central/rev/43ba67391e71c57a14420e554e9d381543292611/toolkit/components/pdfjs/content/web/viewer.js#14173-14207
Comment 1 Tim Nguyen (:ntim) 2022-08-10 09:56:16 PDT
(and all the code for find-in-page is in FindController.cpp)