Bug 243789 - Integrate PDF.js with built-in find-in-page functionality
Summary: Integrate PDF.js with built-in find-in-page functionality
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-10 09:52 PDT by Tim Nguyen (:ntim)
Modified: 2022-11-10 04:23 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)