Bug 244562

Summary: [macOS] Load PDF.js worker for optimal performance
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: PDFAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>