Bug 243789
Summary: | Integrate PDF.js with built-in find-in-page functionality | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
Component: | Assignee: | 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 |
Tim Nguyen (:ntim)
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Tim Nguyen (:ntim)
(and all the code for find-in-page is in FindController.cpp)