WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141515
Web Inspector: images dragged from Inspector to Desktop are named "Unknown.png"
https://bugs.webkit.org/show_bug.cgi?id=141515
Summary
Web Inspector: images dragged from Inspector to Desktop are named "Unknown.png"
Brian Burg
Reported
2015-02-12 09:33:36 PST
This is because the inspector implements those previews by creating an image and setting 'src' attribute to a data URL or object URL, destroying the original filename. From 30 minutes of digging, I was not able to figure out an easy way to tell WebCore what filename to use in this situation. It does seem to figure out the file extensions from mime type correctly, though. Anyone have ideas?
Attachments
[PATCH] Proposed Fix
(5.46 KB, patch)
2017-05-26 21:50 PDT
,
Joseph Pecoraro
wenson_hsieh
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews117 for mac-elcapitan
(1.60 MB, application/zip)
2017-05-26 23:25 PDT
,
Build Bot
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-02-12 09:33:53 PST
<
rdar://problem/19813188
>
Simon Fraser (smfr)
Comment 2
2015-02-12 10:44:36 PST
<
rdar://problem/9251308
> Please fix this!
Joseph Pecoraro
Comment 3
2017-05-26 21:50:40 PDT
Created
attachment 311410
[details]
[PATCH] Proposed Fix This patch adds a <img filename> like feature only for Web Inspector as I wasn't sure if we should go about doing this for all pages before going through a standardization process.
Build Bot
Comment 4
2017-05-26 23:25:23 PDT
Comment on
attachment 311410
[details]
[PATCH] Proposed Fix
Attachment 311410
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/3825610
New failing tests: imported/w3c/web-platform-tests/innerText/getter.html
Build Bot
Comment 5
2017-05-26 23:25:24 PDT
Created
attachment 311415
[details]
Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Wenson Hsieh
Comment 6
2017-05-27 20:24:08 PDT
Comment on
attachment 311410
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=311410&action=review
> Source/WebCore/html/HTMLAttributeNames.in:120 > +filename
Hm, it's somewhat surprising that filename wasn't present here before.
> Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:177 > + String filename = String([response suggestedFilename]);
auto filename
> Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:179 > + String downloadFilename = ResourceResponseBase::sanitizeSuggestedFilename(element.attributeWithoutSynchronization(HTMLNames::filenameAttr));
auto :)
Wenson Hsieh
Comment 7
2017-05-27 20:24:57 PDT
Since this is a WebKit2 change, a WebKit2 reviewer will have to r+ this.
Chris Dumez
Comment 8
2017-05-27 20:29:03 PDT
Comment on
attachment 311410
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=311410&action=review
>> Source/WebCore/html/HTMLAttributeNames.in:120 >> +filename > > Hm, it's somewhat surprising that filename wasn't present here before.
Why is it surprising? It is a new attribute that Joe is introducing.
Wenson Hsieh
Comment 9
2017-05-27 20:38:29 PDT
Comment on
attachment 311410
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=311410&action=review
>>> Source/WebCore/html/HTMLAttributeNames.in:120 >>> +filename >> >> Hm, it's somewhat surprising that filename wasn't present here before. > > Why is it surprising? It is a new attribute that Joe is introducing.
Ah, never mind -- I thought we had support elsewhere for this attribute already, but I was thinking of the download attribute for links.
Joseph Pecoraro
Comment 10
2017-05-30 16:41:06 PDT
<
https://trac.webkit.org/r217584
>
Blaze Burg
Comment 11
2018-05-30 09:15:32 PDT
***
Bug 145984
has been marked as a duplicate of this bug. ***
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