Bug 284460
| Summary: | Content Disposition filename not used when saving inline content | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Derk-Jan Hartman <hartman.wiki> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | karlcow |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Derk-Jan Hartman
Take this url: https://commons.wikimedia.org/w/api.php?action=timedtext&format=json&title=File:Folgers.ogv&trackformat=vtt&lang=en&formatversion=2
It's response headers include:
content-disposition: inline; filename=Folgers.ogv.en.srt.vtt
After opening the url in the browser, choose Save from the File menu.
On Firefox and Chrome, the suggested filename is Folgers.ogv.en.srt.vtt
On Safari it is api.php
I verified that changing quoting, or switching to filename*= makes no difference to Safari.
While a suggested filename is more common for downloads (attachment), as far as I can tell from the spec, it is allowed for inline content just the same.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 8069 ***