WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188957
[Attachment Support] [WK2] Images copied from Mail message view paste with the wrong file name in compose
https://bugs.webkit.org/show_bug.cgi?id=188957
Summary
[Attachment Support] [WK2] Images copied from Mail message view paste with th...
Wenson Hsieh
Reported
2018-08-26 16:57:00 PDT
The resulting file names of the _WKAttachments end up looking something like "
6E69C86F-D0D3-4451-830F-E2C96FD063E0@scv.apple.com
".
Attachments
Depends on webkit.org/b/188903
(6.64 KB, patch)
2018-08-26 17:13 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Rebase on trunk
(6.64 KB, patch)
2018-08-26 19:57 PDT
,
Wenson Hsieh
darin
: review+
Details
Formatted Diff
Diff
Patch for landing
(6.65 KB, patch)
2018-08-27 09:07 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-08-26 17:03:35 PDT
<
rdar://problem/43737715
>
Wenson Hsieh
Comment 2
2018-08-26 17:13:17 PDT
Created
attachment 348105
[details]
Depends on
webkit.org/b/188903
Wenson Hsieh
Comment 3
2018-08-26 19:57:42 PDT
Created
attachment 348113
[details]
Rebase on trunk
Darin Adler
Comment 4
2018-08-27 08:36:26 PDT
Comment on
attachment 348113
[details]
Rebase on trunk View in context:
https://bugs.webkit.org/attachment.cgi?id=348113&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:1334 > + auto mainResource = adoptNS([[WebResource alloc] initWithData:markupData URL:[NSURL URLWithString:@"foo.html"] MIMEType:@"text/html" textEncodingName:@"utf-8" frameName:nil]); > + auto pngResource = adoptNS([[WebResource alloc] initWithData:testImageData() URL:[NSURL URLWithString:@"1.png"] MIMEType:@"image/png" textEncodingName:nil frameName:nil]); > + auto gifResource = adoptNS([[WebResource alloc] initWithData:testGIFData() URL:[NSURL URLWithString:@"2.gif"] MIMEType:@"image/gif" textEncodingName:nil frameName:nil]); > + auto archive = adoptNS([[WebArchive alloc] initWithMainResource:mainResource.get() subresources:@[ pngResource.get(), gifResource.get() ] subframeArchives:@[ ]]);
We should start using ARC for our unit tests.
Wenson Hsieh
Comment 5
2018-08-27 08:50:55 PDT
Comment on
attachment 348113
[details]
Rebase on trunk View in context:
https://bugs.webkit.org/attachment.cgi?id=348113&action=review
>> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:1334 >> + auto archive = adoptNS([[WebArchive alloc] initWithMainResource:mainResource.get() subresources:@[ pngResource.get(), gifResource.get() ] subframeArchives:@[ ]]); > > We should start using ARC for our unit tests.
Noted! I suppose a good first step towards this is to add bridging casts as needed (in fact, there are several places in this file that directly cast NSStrings to CFStringRefs and vice versa). I'll be fixing these as I go, in subsequent patches.
Wenson Hsieh
Comment 6
2018-08-27 09:07:20 PDT
Created
attachment 348148
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2018-08-27 09:45:31 PDT
Comment on
attachment 348148
[details]
Patch for landing Clearing flags on attachment: 348148 Committed
r235375
: <
https://trac.webkit.org/changeset/235375
>
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