-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop asking isPDFOrPostScriptMIMEType() since PDFPlugin does not tran…
…scode PostScript to PDF anymore https://bugs.webkit.org/show_bug.cgi?id=273807 rdar://127647542 Reviewed by Tim Horton. In 246657@main, we removed PostScript conversion code. Since the transcoding to PDF is not supported anymore, we can replace all calls to `isPDFOrPostScriptMIMEType()` with `isPDFMIMEType()`. The former rests on a false premise now. This patch introduces one subtle behavior change, which is that we no longer present a HUD on <object type="application/postscript">. * Source/WebCore/dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument): * Source/WebCore/html/HTMLImageLoader.cpp: (WebCore::HTMLImageLoader::dispatchLoadEvent): * Source/WebCore/platform/MIMETypeRegistry.cpp: (WebCore::MIMETypeRegistry::isPDFOrPostScriptMIMEType): Deleted. * Source/WebCore/platform/MIMETypeRegistry.h: * Source/WebCore/platform/cocoa/MIMETypeRegistryCocoa.mm: (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType): * Source/WebKit/UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::isDisplayingPDFDocument const): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::canShowMIMEType): (WebKit::WebPageProxy::decidePolicyForResponseShared): * Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp: (WebKit::WebLocalFrameLoaderClient::objectContentType): * Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm: (WebKit::WebPage::shouldUsePDFPlugin const): * Source/WebKitLegacy/mac/Misc/WebNSPasteboardExtras.mm: (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]): Canonical link: https://commits.webkit.org/278471@main
- Loading branch information
Showing
10 changed files
with
11 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters