Bug 244562 - [macOS] Load PDF.js worker for optimal performance
Summary: [macOS] Load PDF.js worker for optimal performance
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-30 17:45 PDT by Tim Nguyen (:ntim)
Modified: 2022-08-30 18:03 PDT (History)
2 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-30 17:45:32 PDT
The worker currently doesn't load because the origin for any "webkit-pdfjs-viewer" URL is "null", when it should be "webkit-pdfjs-viewer://pdfjs".

This is already the case in GTK/WPE, we just need to make the check unconditional from these platforms.

Loading the worker should be a performance improvement.
Comment 1 Tim Nguyen (:ntim) 2022-08-30 17:51:06 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3833
Comment 2 EWS 2022-08-30 18:02:55 PDT
Committed 253969@main (5d022f330fb4): <https://commits.webkit.org/253969@main>

Reviewed commits have been landed. Closing PR #3833 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-08-30 18:03:15 PDT
<rdar://problem/99360618>