Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebPDFRepresentation no longer supports the "application/postscript" …
…MIME type https://bugs.webkit.org/show_bug.cgi?id=273859 rdar://127706401 Reviewed by Tim Horton. WebKit no longer has access to the PostScript conversion service. In fact, the PSNormalizer framework (required for conversion) is not even available in macOS Sonoma (and onwards). As such, it is safe for us to remove the PostScript to PDF transcoding logic in -[WebPDFRepresentation convertPostScriptDataSourceToPDF:]. With that, we can also drop "application/postscript" as a supported MIME type in WebPDFRepresentation. We take the liberty to do so in this patch. * Source/WebKitLegacy/mac/WebView/WebPDFRepresentation.mm: (+[WebPDFRepresentation supportedMIMETypes]): (-[WebPDFRepresentation finishedLoadingWithDataSource:]): (+[WebPDFRepresentation postScriptMIMETypes]): Deleted. (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Deleted. Canonical link: https://commits.webkit.org/278515@main
- Loading branch information