Bug 258838

Summary: beforeinput insertFromDrop event getTargetRanges reports incorrect ranges when data from contenteditable
Product: WebKit Reporter: Joshua Toenyes <josh>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: josh, megan_gardner, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Joshua Toenyes
Reported 2023-07-03 19:01:31 PDT
`beforeinput` events with `inputType="insertFromDrop"` return incorrect static ranges from `getTargetRanges()` when the origin of the content being dragged is from a contenteditable element. Instead of returning static range(s) of where the content should be inserted (dropped), it reports where the content came from.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-07-10 19:02:22 PDT
Note You need to log in before you can comment on or make changes to this bug.