[Webkit-unassigned] [Bug 255150] New: clipboardData.setData removes enters when : is in the line
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 7 07:13:39 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255150
Bug ID: 255150
Summary: clipboardData.setData removes enters when : is in the
line
Product: WebKit
Version: Safari 16
Hardware: Mac (Intel)
OS: macOS 12
Status: NEW
Severity: Critical
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nanne at fastmail.com
Browser Safari 16.4, the bug was not present in 16.3
Related: https://github.com/ajaxorg/ace/issues/5112
This bug breaks copying YAML or Python code from online code editors (Ace, CodeMirror, and Monaco).
When testing, two scenarios:
clipboardData.setData("text/plain", `test1\ntest2\ntest3`)
Results into:
test1
test2
test3
And:
clipboardData.setData("text/plain", `test: 1\ntest2\ntest3`)
Results into:
test: 1test2test3
Eating up all the enters
Example: https://jsfiddle.net/102g5phr/ (updated)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230407/354e649f/attachment-0001.htm>
More information about the webkit-unassigned
mailing list