<?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>188152</bug_id>
          
          <creation_ts>2018-07-29 16:08:45 -0700</creation_ts>
          <short_desc>Copying an entire line from a textarea copies two newlines</short_desc>
          <delta_ts>2018-07-29 16:08:45 -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>HTML Editing</component>
          <version>Safari 11</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Mollison">matt.mollison</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1446141</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Mollison">matt.mollison</who>
    <bug_when>2018-07-29 16:08:45 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Visit https://codemirror.net
2. Triple-click one line of text to select the entire line
3. Copy the selected text (via Cmd-C)
4. Paste the line a few times in the same text area, and see that there are empty lines between pasted lines
5. Alternatively, paste into a separate text editor (e.g., TextEdit, Sublime Text, BBEdit, Google Doc), and see that there are empty lines between pasted lines

The behavior in step 5 suggests that the issue is with copying (i.e., two newlines are copied), and that the behavior is not related to pasting.

This issue shows the same behavior as described in an old bug https://bugs.webkit.org/show_bug.cgi?id=49288 but since the old bug was about pasting and this one is about copying, I believe this bug is different.

Also, just noting that the context I usually experience this bug in is in Jupyter Notebooks, which are popular browser-based documents with text areas that are meant for writing code and markdown.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>