[Webkit-unassigned] [Bug 261164] Safari adds .txt extension when downloading files
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 5 11:33:32 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=261164
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ap at webkit.org
--- Comment #1 from Alexey Proskuryakov <ap at webkit.org> ---
Steps to reproduce: Option-click on the link above.
I think that this is correct behavior. GitHub doesn't provide Content-Disposition, so we don't have a download name at all - we just have the URL, which could be quite misleading - e.g. this very Bugzilla page has an URL that looks as if it were a "show_bug.cgi" file, but it's actually HTML is one were to download it.
So given that the only thing we actually know about the downloaded file is that it's text/plain, adding .txt to make sure that it opens in a text editor is best.
$ curl -I https://raw.githubusercontent.com/AnubisNekhet/AnuPpuccin/main/snippets/extended-colorschemes.css
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: "612064a4fab9584daceda780b8378560f1467a64520bcf4500b6b8fde3b7aa72"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 7328:6A88:F78C0:1241D4:64F77388
accept-ranges: bytes
date: Tue, 05 Sep 2023 18:29:29 GMT
via: 1.1 varnish
x-served-by: cache-sjc1000141-SJC
x-cache: MISS
x-cache-hits: 0
x-timer: S1693938569.088852,VS0,VE161
vary: Authorization,Accept-Encoding,Origin
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: aeba5e6b25f2d750f137cfdcd0792a30cbe91810
expires: Tue, 05 Sep 2023 18:34:29 GMT
source-age: 0
content-length: 29296
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230905/61eca46e/attachment.htm>
More information about the webkit-unassigned
mailing list