Bug 116420

Summary: [Mac] REGRESSION (r107844): text/url-list handling in Clipboard’s getData is wrong
Product: WebKit Reporter: Darin Adler <darin>
Component: PlatformAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: sam, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Attachments:
Description Flags
Patch none

Darin Adler
Reported 2013-05-19 16:42:16 PDT
I noticed a mistake by code inspection. Only the last URL in the list works. And I guess we have no regression tests for this. I suppose I’ll have to make one.
Attachments
Patch (2.17 KB, patch)
2013-05-19 16:44 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2013-05-19 16:44:49 PDT
Darin Adler
Comment 2 2013-05-19 16:45:13 PDT
No review flag because there’s no test yet.
Sam Weinig
Comment 3 2013-05-19 17:15:46 PDT
(In reply to comment #2) > No review flag because there’s no test yet. I think setData is wrong as well. What we probably should be doing is parsing the string in setData to get the list of URLs (the format for text/uri-list specified at http://tools.ietf.org/html/rfc2483#section-5) and then we should be writing those URLs to the NSPasteboard using [pasteboard writeObjects:nsArrayOfURLs];
Darin Adler
Comment 4 2017-09-10 13:31:11 PDT
Wenson, any interest in tackling this? You can see reading Pasteboard::readString that it has a loop, but throws away the results from all but the last iteration of the loop.
Wenson Hsieh
Comment 5 2017-09-10 13:36:15 PDT
(In reply to Darin Adler from comment #4) > Wenson, any interest in tackling this? > > You can see reading Pasteboard::readString that it has a loop, but throws > away the results from all but the last iteration of the loop. Yep, sounds like something I can look into!
Darin Adler
Comment 6 2017-09-20 11:09:03 PDT
This code and feature was removed in r222257 so this no longer needs to be done.
Darin Adler
Comment 7 2017-09-20 11:10:01 PDT
Radar WebKit Bug Importer
Comment 8 2017-09-27 12:51:36 PDT
Note You need to log in before you can comment on or make changes to this bug.