WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
116420
[Mac] REGRESSION (
r107844
): text/url-list handling in Clipboard’s getData is wrong
https://bugs.webkit.org/show_bug.cgi?id=116420
Summary
[Mac] REGRESSION (r107844): text/url-list handling in Clipboard’s getData is ...
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2013-05-19 16:44:49 PDT
Created
attachment 202246
[details]
Patch
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
https://trac.webkit.org/changeset/222257
Radar WebKit Bug Importer
Comment 8
2017-09-27 12:51:36 PDT
<
rdar://problem/34694155
>
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