Bug 246284

Summary: [Live Range Selection] A few tests fail due to behavior difference in VisibleSelection::selectionFromContentsOfNode
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 216325    

Description Ryosuke Niwa 2022-10-10 11:04:23 PDT
The following tests fail when enabling Live Range Selection due to canonicalization no longer happening in VisibleSelection::selectionFromContentsOfNode:
LayoutTests/editing/deleting/paste-with-transparent-background-color.html
LayoutTests/editing/execCommand/delete-selection-has-style.html
LayoutTests/editing/input/select-all-clear-input-method.html
LayoutTests/editing/pasteboard/contenteditable-pre-2.html
LayoutTests/editing/pasteboard/copy-paste-content-starting-and-ending-canvas.html
LayoutTests/editing/pasteboard/preserve-line-break-at-end-of-pasted-content.html
LayoutTests/editing/selection/select-all-user-select-none.html
Comment 1 Ryosuke Niwa 2022-10-10 11:07:50 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5197
Comment 2 EWS 2022-10-10 17:39:06 PDT
Committed 255372@main (aef26c62b048): <https://commits.webkit.org/255372@main>

Reviewed commits have been landed. Closing PR #5197 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-10-10 17:40:36 PDT
<rdar://problem/101006626>