Bug 244974 - Dragged Text and CMD+Z makes text inaccessible
Summary: Dragged Text and CMD+Z makes text inaccessible
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://jsfiddle.net/359qn1vm/6/
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-09-09 06:52 PDT by Ahmad Saleem
Modified: 2022-09-13 14:46 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-09-09 06:52:51 PDT
Hi Team,

While going through Chrome Monorail, I came across a test case, which is broken in Safari/Webkit and it would be good to fix it in Webkit.

Link - https://jsfiddle.net/359qn1vm/6/

Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=864941

*** STEPS TO REPRODUCE ***

1) Go to JSFiddle
2) Drag Text from one field to another
3) Press CMD+Z / Ctrl+Z to Undo
4) Click "Check Values"

*** ACTUAL RESULT ***

text from the left textarea: 
text from the right textarea: 

*** EXPECTED RESULT ***

text from the left textarea: drag me to another textarea
text from the right textarea: 

<<< OTHER BROWSERS >>>

Firefox Nightly 106 - Upon Step 3 - text vanishes
Chrome Canary 107 - Work as intended
Safari Technology Preview 153 (Tested - Show "Actual Result" above mentioned

__________

I think it is good to fix and align the behavior.

Keep making Webkit awesome!!!

Thanks!
Comment 1 Karl Dubost 2022-09-13 14:46:30 PDT
Indeed the text goes back to the first textarea, but the 

text1.select();
text1.value

returns an empty string.
Comment 2 Radar WebKit Bug Importer 2022-09-13 14:46:42 PDT
<rdar://problem/99889663>