Skip to content

Truly independent web browser

Meta: Update pdfjs to version 6.5.438#0

Shannon Booth647a436498ab
diff --git a/Base/res/ladybird/pdfjs/pdfjs-ladybird-transport.mjs b/Base/res/ladybird/pdfjs/pdfjs-ladybird-transport.mjs
index 641a022a72f..1a99e1582e7 100644
--- a/Base/res/ladybird/pdfjs/pdfjs-ladybird-transport.mjs
+++ b/Base/res/ladybird/pdfjs/pdfjs-ladybird-transport.mjs
@@ -4,6 +4,9 @@ async function openPdf(response) {
const workerSrc = "resource://ladybird/pdfjs/build/pdf.worker.mjs";
window.PDFViewerApplicationOptions.set("workerSrc", workerSrc);
+ const rendererSrc = "resource://ladybird/pdfjs/build/pdf.renderer.mjs";
+ window.PDFViewerApplicationOptions.set("rendererSrc", rendererSrc);
+
const sourceUrl = response.url;
if (sourceUrl) window.PDFViewerApplication.setTitleUsingUrl(sourceUrl, sourceUrl);
diff --git a/Meta/CMake/flatpak/org.ladybird.Ladybird.json b/Meta/CMake/flatpak/org.ladybird.Ladybird.json
index 76a8b2887d4..c0d32cb33e4 100644
--- a/Meta/CMake/flatpak/org.ladybird.Ladybird.json
+++ b/Meta/CMake/flatpak/org.ladybird.Ladybird.json
@@ -711,13 +711,13 @@
{
"type": "git",
"url": "https://github.com/mozilla/pdf.js.git",
- "tag": "v6.4.299",
+ "tag": "v6.5.438",
"dest": "pdfjs-src"
},
{
"type": "archive",
- "url": "https://github.com/mozilla/pdf.js/releases/download/v6.4.299/pdfjs-6.4.299-dist.zip",
- "sha256": "f2245eb7ef3f674c872fe568a177bfec15874f5c034613e55d8e307f93ebd86d",
+ "url": "https://github.com/mozilla/pdf.js/releases/download/v6.5.438/pdfjs-6.5.438-dist.zip",
+ "sha256": "fcbe9ba21d9911843e3502adc178a7f549a524a4055f887bedc942e5490c6ba1",
"dest": ".",
"strip-components": 0
},
diff --git a/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake b/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
index 7e92bd33cfc..2687d6b7710 100644
--- a/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
+++ b/Meta/CMake/vcpkg/overlay-ports/pdfjs/portfile.cmake
@@ -4,7 +4,7 @@ set(VCPKG_BUILD_TYPE release)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/mozilla/pdf.js/releases/download/v${VERSION}/pdfjs-${VERSION}-dist.zip"
FILENAME "pdfjs-${VERSION}-dist.zip"
- SHA512 ed520ebaa60242f68c27c47eece48887fb862bea977f873212f1bf7556ef562adcb33e4a1daac9fbb63e5fe882dc16ba9226e29d467fda25ee0101ba2ea930de
+ SHA512 708da0d1e90058bfb974991c39fa46dbd81fa1882003d05964071be753866dc2502ff21c135170b42a915ad4704f9969863f2d0ce78f55658adc4a67b776779e
)
vcpkg_extract_source_archive_ex(
@@ -19,7 +19,7 @@ z_vcpkg_apply_patches(
PATCHES 0001-ladybird-embed.patch
)
-# build/: pdf.mjs, pdf.worker.mjs, pdf.sandbox.mjs (no .map files)
+# build/: pdf.mjs, pdf.worker.mjs, pdf.renderer.mjs, pdf.sandbox.mjs (no .map files)
file(GLOB BUILD_MJS "${SOURCE_PATH}/build/*.mjs")
file(INSTALL ${BUILD_MJS} DESTINATION "${CURRENT_PACKAGES_DIR}/share/pdfjs/build")
diff --git a/Meta/CMake/vcpkg/overlay-ports/pdfjs/vcpkg.json b/Meta/CMake/vcpkg/overlay-ports/pdfjs/vcpkg.json
index 2079a6ac361..1d546a81dd5 100644
--- a/Meta/CMake/vcpkg/overlay-ports/pdfjs/vcpkg.json
+++ b/Meta/CMake/vcpkg/overlay-ports/pdfjs/vcpkg.json
@@ -1,5 +1,5 @@
{
"name": "pdfjs",
- "version": "6.4.299",
+ "version": "6.5.438",
"description": "PDF.js prebuilt web viewer assets"
}
diff --git a/vcpkg.json b/vcpkg.json
index 027e1131d8d..4b96edef631 100644
--- a/vcpkg.json
+++ b/vcpkg.json
@@ -399,7 +399,7 @@
},
{
"name": "pdfjs",
- "version": "6.4.299#0"
+ "version": "6.5.438#0"
},
{
"name": "pthread",