Bug 258838 - beforeinput insertFromDrop event getTargetRanges reports incorrect ranges when data from contenteditable
Summary: beforeinput insertFromDrop event getTargetRanges reports incorrect ranges whe...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-03 19:01 PDT by Joshua Toenyes
Modified: 2023-07-10 19:02 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Toenyes 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.
Comment 1 Radar WebKit Bug Importer 2023-07-10 19:02:22 PDT
<rdar://problem/112052077>