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 Rendering | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Tim Horton
DragImage just uses
hitTestResult.textContent().simplifyWhiteSpace()
instead of TextIterator or something smart like that.