From: Debian Qt/KDE Maintainers Date: Wed, 28 Oct 2020 18:52:59 +0000 (+0000) Subject: do not attempt rendering PDF with Qt image plugin X-Git-Tag: archive/raspbian/5.212.0_alpha4-7+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=65d6b4681c8f9752e8533eaf6ebf9d37abe98cb2;p=qtwebkit-opensource-src.git do not attempt rendering PDF with Qt image plugin Origin: upstream, https://github.com/qtwebkit/qtwebkit/commit/0443d42b04e0f99c Last-Update: 2020-09-13 Qt 5.15 added Qt PDF module which comes with imageformat plugin, which allows rendering first page of PDF document as image. Gbp-Pq: Name no_pdf_image_plugin.diff --- diff --git a/Source/WebCore/platform/MIMETypeRegistry.cpp b/Source/WebCore/platform/MIMETypeRegistry.cpp index f824e605..8087dc98 100644 --- a/Source/WebCore/platform/MIMETypeRegistry.cpp +++ b/Source/WebCore/platform/MIMETypeRegistry.cpp @@ -254,6 +254,9 @@ static void initializeSupportedImageMIMETypes() // Do not treat SVG as images directly because WebKit can handle them. supportedImageMIMETypes->remove("image/svg+xml"); supportedImageResourceMIMETypes->remove("image/svg+xml"); + // Do not treat PDF as images + supportedImageMIMETypes->remove("application/pdf"); + supportedImageResourceMIMETypes->remove("application/pdf"); #endif // PLATFORM(QT) #endif // USE(CG) }