WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
188152
Copying an entire line from a textarea copies two newlines
https://bugs.webkit.org/show_bug.cgi?id=188152
Summary
Copying an entire line from a textarea copies two newlines
Matt Mollison
Reported
2018-07-29 16:08:45 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
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