WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
172678
Support a way to provide a suggested filename for <img src="data:..."> file creation (drag to desktop, save as context menu)
https://bugs.webkit.org/show_bug.cgi?id=172678
Summary
Support a way to provide a suggested filename for <img src="data:..."> file c...
Joseph Pecoraro
Reported
2017-05-26 21:35:52 PDT
Summary: Support a way to provide a suggested filename for <img src="data:..."> file creation (drag to desktop, save as context menu). Test: <img src="data:image/png;base64,..."> Existing Behavior: • When dragging to Desktop => "Unknown.png" • Right click > Save Image as => "Unknown.png" Expected: Web authors should be able to provide a suggested filename. For example: <img src="data:image/png;base64,..." filename="dog.png"> Notes: • This is somewhat related to Chrome's non-standard "DownloadURL" support. However that is only for Drag and Drop (not Save as) and requires JavaScript so won't work in some contexts.
Attachments
[PATCH] Proposed Fix
(5.47 KB, patch)
2017-05-26 21:47 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2017-05-26 21:38:02 PDT
I'd like to propose a "filename" attribute on <img> for this purpose. Similar to the "download" attribute on <a> but because this doesn't affect behavior of the <img>; its just about a suggested filename.
Radar WebKit Bug Importer
Comment 2
2017-05-26 21:38:18 PDT
<
rdar://problem/32439969
>
Joseph Pecoraro
Comment 3
2017-05-26 21:47:14 PDT
Created
attachment 311409
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 4
2017-05-30 17:37:06 PDT
I opened an HTML Spec issue: <
https://github.com/whatwg/html/issues/2722
>
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