Bug 178253 - "text/html" data is not exposed when dragging and dropping across origins
Summary: "text/html" data is not exposed when dragging and dropping across origins
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-12 22:13 PDT by Wenson Hsieh
Modified: 2017-10-13 00:14 PDT (History)
9 users (show)

See Also:


Attachments
Patch (44.96 KB, patch)
2017-10-12 23:02 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2017-10-12 22:13:22 PDT
Test case:

1. Download http://whsieh.github.io/examples/custom-pasteboard-data.html to a local file and open it
2. Open http://whsieh.github.io/examples/custom-pasteboard-data.html in a separate window
3. Drag the "Custom Drag" element from one window to the other.

Observed: "text/html" does not appear in the output area.
Expected: "text/html" should be exposed.
Comment 1 Wenson Hsieh 2017-10-12 22:14:22 PDT
In DataTransfer::setDataFromItemList(), we need to handle the case where the type is "text/html".
Comment 2 Radar WebKit Bug Importer 2017-10-12 22:19:59 PDT
<rdar://problem/34971203>
Comment 3 Wenson Hsieh 2017-10-12 23:02:22 PDT
Created attachment 323640 [details]
Patch
Comment 4 Wenson Hsieh 2017-10-12 23:03:13 PDT
(Diff looks way bigger than the change really is due to renaming)
Comment 5 Wenson Hsieh 2017-10-12 23:46:55 PDT
Comment on attachment 323640 [details]
Patch

Thanks for the review!
Comment 6 WebKit Commit Bot 2017-10-13 00:14:33 PDT
Comment on attachment 323640 [details]
Patch

Clearing flags on attachment: 323640

Committed r223278: <https://trac.webkit.org/changeset/223278>
Comment 7 WebKit Commit Bot 2017-10-13 00:14:35 PDT
All reviewed patches have been landed.  Closing bug.