Steps to reproduce: 1) Click inside the paragraph of text. Hit Cmd-A to select all of the text. 2) Hit Cmd-V twice to paste the text twice. Note where the second paragraph of text ends up. 3) Hit Cmd-V to paste the text a third time. Boom!
Created attachment 11639 [details] Test case
On second paste: ASSERTION FAILED: m_parentNode->isContentEditable() || !m_parentNode->attached() (WebCore/editing/AppendNodeCommand.cpp:45 virtual void WebCore::AppendNodeCommand::doApply())
I can no longer reproduce on TOT.
The behaviour has changed since this bug was initially opened. What happens now is that a bunch of extra whitespace (roughly 8 or 10 spaces) is added to the end of the content on every paste. The result is that hitting paste multiple times results in your pasted text being broken up by blocks of spaces.
I am able to reproduce this in Safari 15.5 on macOS 12.4. All other browsers such as Chrome Canary 105 and Firefox Nightly 104 does not add any extra spaces at the end as mentioned in Comment 04. Thanks!
<rdar://problem/97641709>
I am not able to reproduce this bug in Safari Technology Preview 164 anymore, it might have been fixed due to HTML Editing changes or Live Range Selection API. Marking this as "RESOLVED CONFIGURATION CHANGED".