Bug 188152
| Summary: | Copying an entire line from a textarea copies two newlines | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Mollison <matt.mollison> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | wenson_hsieh |
| Priority: | P2 | ||
| Version: | Safari 11 | ||
| Hardware: | Mac | ||
| OS: | macOS 10.13 | ||
Matt Mollison
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. |