Bug 174142

Summary: When dragging a selection, clearing the selection in dragstart should not crash the web process
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebCore Misc.Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, commit-queue, rniwa, thorton
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Wenson Hsieh
Reported 2017-07-04 16:30:16 PDT
Test case: <meta name="viewport" content="width=device-width, initial-scale=1"> <code><p id="paragraph" style="font-size: 100px;">START DRAGGING</p></code> <script> function select(node) { let range = document.createRange(node); range.setStartBefore(node); range.setEndAfter(node); getSelection().removeAllRanges(); getSelection().addRange(range); } select(paragraph.childNodes[0]); document.body.addEventListener("dragstart", () => { getSelection().removeAllRanges(); paragraph.textContent = "PASS"; paragraph.style.color = "green"; }); </script>
Attachments
Patch (10.06 KB, patch)
2017-07-04 17:04 PDT, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2017-07-04 16:34:53 PDT
Wenson Hsieh
Comment 2 2017-07-04 17:04:36 PDT
WebKit Commit Bot
Comment 3 2017-07-05 13:32:45 PDT
Comment on attachment 314586 [details] Patch Clearing flags on attachment: 314586 Committed r219153: <http://trac.webkit.org/changeset/219153>
WebKit Commit Bot
Comment 4 2017-07-05 13:32:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.