| Summary: | PDF.js is not shipped in preferred modifiable form | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | Assignee: | Nobody <webkit-unassigned> | |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro, ntim, thorton |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 235969 | ||
|
Description
Michael Catanzaro
2022-05-16 08:55:45 PDT
I don't mind either way tbh. As long as the update process is straightforward and doesn't involve manually editing/patching the PDF.js source code, I'm good with it. Feel free to do it on all platforms, happy to review. If you could document the instructions for updating, that would be great! Also, it's worth noting that bundle size is a problem that we'd like to tackle at some point, so if you have solutions for that, I'd be curious to know what it is. Happy to review either way! (In reply to Tim Nguyen (:ntim) from comment #1) > I don't mind either way tbh. As long as the update process is > straightforward and doesn't involve manually editing/patching the PDF.js > source code, I'm good with it. Feel free to do it on all platforms, happy to > review. > > If you could document the instructions for updating, that would be great! Well you've already ensured that this can be done without patching, with your split between the third-party code and the pdfjs-extras in WebCore. (That's nicer than the Epiphany version, which requires some patching.) Accordingly, the instructions for updating should be easy. > Also, it's worth noting that bundle size is a problem that we'd like to > tackle at some point, so if you have solutions for that, I'd be curious to > know what it is. Hm, for GTK/WPE everything gets compressed automatically with gzip. If we want to do better than that, I suppose we'd be looking at using gulp and also perhaps minification? This is far from my expertise. I'd be curious to see a proof of concept of what you think this could look like, to ship directly from the source. Major correction: Epiphany is actually shipping the prebuilt sources too. :P We previously had a request from Debian to remove the .map files, which are already not present in WebKit's dist, so... that kinda implies they're OK with shipping sources preprocessed by gulp already. Accordingly, I'm just going to go ahead and close this and hope nobody complains. It doesn't seem practical to do more for now. If we receive complaints, then we can reconsider. I'll still look into updating to the latest version and adding a README. (In reply to Tim Nguyen (:ntim) from comment #1) > Also, it's worth noting that bundle size is a problem that we'd like to > tackle at some point, so if you have solutions for that, I'd be curious to > know what it is. It looks like it's about 4 MB for us, see https://bugs.webkit.org/show_bug.cgi?id=238023#c2. That's with all the .html, .js, .css, .svg, and .properties files gzip compressed. |