Bug 190628

Summary: [macOS] Drag image for link can include text that isn’t rendered as part of the link
Product: WebKit Reporter: mitz
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, simon.fraser, thorton, zalan
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: data:text/html,<a%20href=#><noscript>do%20</noscript><span%20style="display:none">not%20</span>drag%20this</a>

mitz
Reported 2018-10-16 10:45:22 PDT
To reproduce, navigate to the URL and drag the link out. The drag image says “do not drag this” even though “do” and “not” are text nodes in elements that do not get rendered.
Attachments
Tim Horton
Comment 1 2018-10-16 10:49:27 PDT
DragImage just uses hitTestResult.textContent().simplifyWhiteSpace() instead of TextIterator or something smart like that.
Note You need to log in before you can comment on or make changes to this bug.