[Webkit-unassigned] [Bug 124391] text/rtf clipboard data is empty (makes TinyMCE and textbox.io require Flash)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 26 10:31:16 PST 2017


--- Comment #5 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #4)
> We put the RTF data on the pasteboard but we do not allow WebContent to read
> it at the moment. In PasteboardMac.mm's cocoaTypeFromHTMLClipboardType():
>     // Blacklist types that might contain subframe information.
>     if (lowercasedType == "text/rtf" || lowercasedType == "public.rtf" ||
> lowercasedType == "com.apple.traditional-mac-plain-text")
>         return String();
> If you replace with:
>     if (lowercasedType == "text/rtf" || lowercasedType == "public.rtf")
>         return NSRTFPboardType;
> then the test case works.
> However, it looks like someone intentionally blacklisted those (likely for
> security reasons) so we'll have to investigate why and how to better deal
> with RTF.

This was done in https://trac.webkit.org/changeset/115513.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170126/7ba59e08/attachment.html>

More information about the webkit-unassigned mailing list