WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
8069
Filename specified in Content-Disposition header should be used as default when doing File -> Save As…
https://bugs.webkit.org/show_bug.cgi?id=8069
Summary
Filename specified in Content-Disposition header should be used as default wh...
Sveinbjorn Thordarson
Reported
2006-03-29 18:11:29 PST
If a filename is provided for an HTML document in the Content-Disposition META tag, in the following (and correct) fashion: <meta http-equiv="Content-Disposition" content="inline; filename=myname.html"> it is completely ignored by the Safari browser when you choose "Save as..." for the page source. Instead, Safari creates its own file name from the page's TITLE attribute and appends a ".html" suffix to it. This is, I believe, a violation of the standard. At any rate, Firefox behaves correctly and respects the Content-Disposition filename. Of course, this is a trivial bug, but it would be nice to see it fixed -- especially since the fix would require very little work indeed.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2006-07-02 07:11:03 PDT
Confirmed with WebKit 418.8 and the latest nightly build.
Sveinbjorn Thordarson
Comment 2
2008-05-20 06:52:43 PDT
Please correct me if I'm wrong, but this is faulty behaviour in Safari rather than in WebKit as such, right? The GUI shell around WebKit that is the Safari browser is not open source, and thus this bug could not be fixed by 3rd parties, unless I'm much mistaken.
Alexey Proskuryakov
Comment 3
2008-05-20 10:31:55 PDT
Safari doesn't look inside HTML files, so this is (at least partially) a WebKit bug. It needs to pass this information to Safari. I'm not sure if this behavior is mandated by any specifications though, and it might be dangerous to override Content-Disposition from HTML content, even if Firefox does just that. For example, a firewall may not support that, and thus be fooled about the kind of content.
Sveinbjorn Thordarson
Comment 4
2009-05-12 22:56:44 PDT
http://sveinbjorn.org/safari_content_disposition_info_ignored
Mark Rowe (bdash)
Comment 5
2009-05-12 23:49:44 PDT
IMO this is a Safari bug, not a WebKit one. It may require a WebKit a change to expose information for Safari to use, but the problem is in Safari so this should be tracked via Radar.
Mark Rowe (bdash)
Comment 6
2009-05-12 23:52:34 PDT
Retitling to reflect the nature of the request.
Mark Rowe (bdash)
Comment 7
2009-05-12 23:52:58 PDT
<
rdar://problem/6882445
>
Mark Rowe (bdash)
Comment 8
2009-05-13 00:15:21 PDT
Since this bug is requesting an enhancement to Safari rather than WebKit, Bugzilla is not an appropriate location to track this request. The bug has been migrated to Radar and that bug will be used by the Safari team to track the enhancement that you have requested. This Bugzilla bug will be closed as INVALID to indicate that the issue is outside of WebKit.
Alexey Proskuryakov
Comment 9
2024-12-12 14:20:18 PST
***
Bug 284460
has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 10
2024-12-18 13:32:32 PST
This was originally tracking Content-Disposition coming from meta http-equiv, but we have the issue with both that and actual HTTP headers.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug