<attachment>s should be created when dropping files onto contentEditable areas
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Mar 2015 18:21:05 +0000 (18:21 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Mar 2015 18:21:05 +0000 (18:21 +0000)
commit0e315bcb95d0b435b9272031d4aae9ac1eeb399d
tree11b69465e325154dd73f16d01baf77ef25bcfb06
parent7dc5b38b1351de1c5be76cd75776f626ec0119b4
<attachment>s should be created when dropping files onto contentEditable areas
https://bugs.webkit.org/show_bug.cgi?id=142494
<rdar://problem/19982553>

Reviewed by Anders Carlsson.

Covered by existing tests.

* editing/mac/EditorMac.mm:
(WebCore::Editor::WebContentReader::readFilenames):
Instead of inserting the dropped URLs as strings, make an <attachment>
for each.

* editing/pasteboard/drag-files-to-editable-element-expected.txt:
* editing/pasteboard/drag-files-to-editable-element.html:
Update the test to expect <attachment>s instead of filenames.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/drag-files-to-editable-element-expected.txt
LayoutTests/editing/pasteboard/drag-files-to-editable-element.html
Source/WebCore/ChangeLog
Source/WebCore/editing/mac/EditorMac.mm