<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>255150</bug_id>
          
          <creation_ts>2023-04-07 07:13:39 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 16.4): clipboardData.setData removes newlines when : is in the line</short_desc>
          <delta_ts>2023-04-12 01:42:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=250119</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nanne Wielinga">nanne</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1947271</commentid>
    <comment_count>0</comment_count>
    <who name="Nanne Wielinga">nanne</who>
    <bug_when>2023-04-07 07:13:39 -0700</bug_when>
    <thetext>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(&quot;text/plain&quot;, `test1\ntest2\ntest3`)

Results into:

test1
test2
test3

And:

clipboardData.setData(&quot;text/plain&quot;, `test: 1\ntest2\ntest3`)

Results into:

test: 1test2test3

Eating up all the enters

Example: https://jsfiddle.net/102g5phr/ (updated)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947518</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-04-08 18:12:27 -0700</bug_when>
    <thetext>Could you please try Safari Technology Preview 167? I cannot reproduce with a newer Safari version, so I suspect that this was fixed as part of bug 250119.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947519</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-08 18:12:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/107796207&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948186</commentid>
    <comment_count>3</comment_count>
    <who name="Nanne Wielinga">nanne</who>
    <bug_when>2023-04-12 01:42:24 -0700</bug_when>
    <thetext>Yes, Safari Technology Preview 167 resolves the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>