[webkit-changes] [WebKit/WebKit] f9a7dd: [ios] Prioritize text/plain content type over sugg...
Matthew Finkel
noreply at github.com
Mon Aug 5 10:33:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f9a7dd12bbf77919866f72097b381a51cebdf56b
https://github.com/WebKit/WebKit/commit/f9a7dd12bbf77919866f72097b381a51cebdf56b
Author: Matthew Finkel <sysrqb at apple.com>
Date: 2024-08-05 (Mon, 05 Aug 2024)
Changed paths:
M LayoutTests/http/tests/mime/resources/.htaccess
A LayoutTests/http/tests/mime/resources/xhtml-with-html-with-content-disposition
A LayoutTests/http/tests/mime/resources/xhtml-with-html.xhtml
A LayoutTests/http/tests/mime/xhtml-with-html-expected.txt
A LayoutTests/http/tests/mime/xhtml-with-html-with-content-disposition-expected.txt
A LayoutTests/http/tests/mime/xhtml-with-html-with-content-disposition.html
A LayoutTests/http/tests/mime/xhtml-with-html.html
M Source/WebCore/platform/network/ios/WebCoreURLResponseIOS.mm
Log Message:
-----------
[ios] Prioritize text/plain content type over suggested xhtml MIME type
https://bugs.webkit.org/show_bug.cgi?id=273805
rdar://126768293
Reviewed by David Kilzer.
Prefer text/plain when it is requested, instead of guessing the best MIME type
from a xhtml file extension or the content disposition.
* LayoutTests/http/tests/mime/resources/.htaccess:
* LayoutTests/http/tests/mime/resources/xhtml-with-html-with-content-disposition: Added.
* LayoutTests/http/tests/mime/resources/xhtml-with-html.xhtml: Added.
* LayoutTests/http/tests/mime/xhtml-with-html-expected.txt: Added.
* LayoutTests/http/tests/mime/xhtml-with-html-with-content-disposition-expected.txt: Added.
* LayoutTests/http/tests/mime/xhtml-with-html-with-content-disposition.html: Added.
* LayoutTests/http/tests/mime/xhtml-with-html.html: Added.
* Source/WebCore/platform/network/ios/WebCoreURLResponseIOS.mm:
(WebCore::shouldPreferTextPlainMIMEType):
Originally-landed-as: 272448.1013 at safari-7618-branch (efaf5e842f10). rdar://132955068
Canonical link: https://commits.webkit.org/281836@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list