[Webkit-unassigned] [Bug 49141] Use Blob URL instead of webkit-fake-url when pasting an image and no URL is available

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 6 20:17:38 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=49141

--- Comment #22 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #20)
> Ok, so I think I have a plan (in several steps):
> 1. Add HTML the pasteboard when copying an image in Safari, instead of RTFD.
> This matches Firefox and pasting this in Safari works great (Image shows and
> has a regular URL). Note that HTML has priority over images in WebKit when
> reading from the pasteboard.
> 2. When reading an image from the pasteboard, check if there is also a URL
> in the pasteboard and use it if there is, instead of creating a
> WebKit-fake-URL. This is testable by copying an image from Chrome to Safari.
> The pasted image would then have
> a proper URL instead of a webkit-fake-url.
> 3. When reading an image from the pasteboard, and if there is no URL in the
> pasteboard, construct a Blob URL instead of a webkit-fake-url. Blob URLs
> have the benefit of being standard and convenient to use from JavaScript.

Ryosuke pointed out offline that not writing RTFD to the pasteboard anymore is risky compatibility-wise. Therefore, my fallback plan is to keep writing RTFD to the pasteboard but add HTML as well. HTML has priority over RTFD when reading the pasteboard in WebKit so this should be fine as well.

-- 
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/20161007/9b1b6340/attachment-0001.html>


More information about the webkit-unassigned mailing list