[Webkit-unassigned] [Bug 196702] insertFromPaste InputEvent missing text/uri-list in dataTransfer for pasted links

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 8 12:23:08 PDT 2019


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

Wenson Hsieh <wenson_hsieh at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rniwa at webkit.org

--- Comment #1 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to Javan Makhmali from comment #0)
> Created attachment 366966 [details]
> Link paste inspection
> 
> To reproduce:
> 1. Open a page containing the following HTML: <a
> href="https://bugs.webkit.org/">WebKit Bugzilla</a>
> 2. Right-click the link and choose "Copy Link"
> 3. Paste into a contenteditable element
> 4. Inspect the "paste" event's clipboardData: 
>    { 
>      "text/plain": "https://bugs.webkit.org/", 
>      "text/uri-list": "https://bugs.webkit.org/" 
>    }
> 5. Compare that to the "beforeinput" or "input" event's dataTransfer: 
>    { 
>      "text/html": "<a href="https://bugs.webkit.org/">WebKit Bugzilla</a>", 
>      "text/plain": "WebKit Bugzilla" 
>    }
> 
> 
> Example paste: https://input-inspector.now.sh/profiles/u8CdyvoSRZtimXxzBSS0

Hi Javan!

According to the spec here: https://www.w3.org/TR/input-events-2, the prepopulated DataTransfer object accessible via input events should contain 1 entry for "text/html" and 1 entry for "text/plain". It *seems* reasonable to add one for text/uri-list as well though, in circumstances such as these (pasting or dropping a link).

-- 
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/20190408/1c386d7c/attachment-0001.html>


More information about the webkit-unassigned mailing list