[Webkit-unassigned] [Bug 174165] New: Incorrect ClipboardEvent.clipboardData when performing Paste and Match Style
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 5 10:59:09 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=174165
Bug ID: 174165
Summary: Incorrect ClipboardEvent.clipboardData when performing
Paste and Match Style
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.12.4
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: javan at javan.us
CC: wenson_hsieh at apple.com
Created attachment 314620
--> https://bugs.webkit.org/attachment.cgi?id=314620&action=review
Paste event clipboard data inspector
The ClipboardData for paste events are identical when performing Paste (⌘V) and Paste and Match Style (⌥⇧⌘V). Because they're indistinguishable, it's impossible to programmatically handle pastes correctly in a rich text editor (like https://github.com/basecamp/trix, which I help maintain). There's no way to infer the desired format and pick an appropriate type.
To reproduce, open the attached paste-inspector.html file in Safari and paste as instructed. Note that the logged paste events are identical and both contain "text/html" and "text/plain" types. Chrome and Firefox only return a "text/plain" type when performing Paste and Match Style, which I assume is correct.
This issue is also present in previous versions of Safari.
Screenshots
Safari: https://cl.ly/291S1I3L2B25
Chrome: https://cl.ly/3m3B1P0D0Q2E
Firefox: https://cl.ly/3M3v2R2r2T2H
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170705/968d8134/attachment.html>
More information about the webkit-unassigned
mailing list