WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
261936
REGRESSION (iOS 17): The textarea element URL encodes pasteboard data
https://bugs.webkit.org/show_bug.cgi?id=261936
Summary
REGRESSION (iOS 17): The textarea element URL encodes pasteboard data
Ben Ubois
Reported
2023-09-21 22:42:24 PDT
The textarea element has an unexpected behavior where it URL encodes the data it sends to the pasteboard when a certain pattern is entered. Any string followed by a colon, will result in the contents getting URL encoded when copied. Video example:
https://www.dropbox.com/scl/fi/scf8jxjyj6egg3r63wnz4/textarea.mov?rlkey=6qc0fcxa41en9xxvv7df3v382&dl=0
Steps: 1. Type the following string into a textarea: Hello:< 2. Copy the contents of the textarea 3. Paste the result somewhere Expected: The string Hello:< should be pasted Actual: The string hello:%3C is pasted
Attachments
iOS 16.4 vs iOS 17.0 result
(639.37 KB, image/png)
2023-09-25 14:25 PDT
,
Ben Ubois
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2023-09-24 15:49:36 PDT
I can reproduce this on iOS, but not on macOS. Quite weird indeed.
Ben Ubois
Comment 2
2023-09-24 16:05:23 PDT
It looks like this does not just affect textarea. Any text that matches this pattern gets URL encoded when copied in iOS Safari 17.
Alexey Proskuryakov
Comment 3
2023-09-25 10:01:08 PDT
Do you happen to know if this is new in iOS 17, and didn't affect earlier version?
Ben Ubois
Comment 4
2023-09-25 14:25:38 PDT
Created
attachment 467854
[details]
iOS 16.4 vs iOS 17.0 result It appears to be new as of iOS 17. I was able to test on 16.4 as well (the most recent of the simulator versions available) and the same issue was not present. In the attachment you can see the difference between 16.4 and 17 when copying and pasting from a <p> into a <textarea>. It appears that iOS 17 is down casing the pasted string as well.
Radar WebKit Bug Importer
Comment 5
2023-09-26 08:27:18 PDT
<
rdar://problem/116056298
>
Richard Robinson
Comment 6
2023-10-10 12:35:57 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/18902
EWS
Comment 7
2023-10-10 17:44:12 PDT
Committed
269178@main
(a2225304ef16): <
https://commits.webkit.org/269178@main
> Reviewed commits have been landed. Closing PR #18902 and removing active labels.
Alexey Proskuryakov
Comment 8
2023-11-15 12:28:47 PST
***
Bug 264867
has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 9
2023-11-15 12:30:08 PST
This should be working correctly in current iOS 17.2 beta. Please comment if it does not.
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