[Webkit-unassigned] [Bug 289445] Download Video uses the wrong file extension, from the URL rather than from the Content-Type

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 16 22:44:42 PDT 2025


https://bugs.webkit.org/show_bug.cgi?id=289445

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karlcow at apple.com

--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
The markup is the same in Safari, Firefox and Chrome

<video class="m-0 max-h-full max-w-full"
       autoplay=""
       playsinline=""
       muted=""
       loop=""
       src="https://external-preview.redd.it/yhb1f6aAABHf5frJUF4mHku3JTgwbg2gl7Wco76dyjA.gif?width=308&format=mp4&s=88a3fadf350d2eb9a9c97192a9275c9b3445e979">
</video>


The response is appropriate for all browsers

```
HTTP/2 206 
content-type: video/mp4
cache-control: public, max-age=604800
server: snooserv-imo
x-imo-features: format=mp4&width=308
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
content-range: bytes 0-16082/16083
date: Mon, 17 Mar 2025 05:37:39 GMT
vary: X-Imo-Features,Origin
report-to: {"group": "w3-reporting-nel", "max_age": 14400, "include_subdomains": true,  "endpoints": [{ "url": "https://w3-reporting-nel.reddit.com/reports" }]}, {"group": "w3-reporting", "max_age": 14400, "include_subdomains": true, "endpoints": [{ "url": "https://w3-reporting.reddit.com/reports" }]}, {"group": "w3-reporting-csp", "max_age": 14400, "include_subdomains": true, "endpoints": [{ "url": "https://w3-reporting-csp.reddit.com/reports" }]}
nel: {"report_to": "w3-reporting-nel", "max_age": 14400, "include_subdomains": false, "success_fraction": 0.5, "failure_fraction": 0.5}
content-length: 16083
X-Firefox-Spdy: h2
```

And the "save as" indeed uses the correct file but somehow it picks the URL to determine the filename and the extension for saving the file.
https://external-preview.redd.it/yhb1f6aAABHf5frJUF4mHku3JTgwbg2gl7Wco76dyjA.gif

changing .gif by .mp4 will fix the right result on the finder.

-- 
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/20250317/008cc4f5/attachment.htm>


More information about the webkit-unassigned mailing list