Changeset 221067 in webkit
- Timestamp:
- Aug 22, 2017, 9:54:59 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/pasteboard/datatransfer-getdata-plaintext-expected.txt (modified) (1 diff)
-
LayoutTests/editing/pasteboard/datatransfer-getdata-plaintext.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/DataTransfer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r221065 r221067 1 2017-08-22 Ryosuke Niwa <rniwa@webkit.org> 2 3 Consolidate the code to normalize MIME type in DataTransfer 4 https://bugs.webkit.org/show_bug.cgi?id=175810 5 6 Rubber-stamped by Wenson Hsieh. 7 8 Address the forgotten review comment by Wenson. 9 10 * editing/pasteboard/datatransfer-getdata-plaintext-expected.txt: 11 * editing/pasteboard/datatransfer-getdata-plaintext.html: 12 1 13 2017-08-22 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/LayoutTests/editing/pasteboard/datatransfer-getdata-plaintext-expected.txt
r221063 r221067 7 7 PASS clipboardData.setData(" tEXT/pLaIN", "world"); clipboardData.getData("text/plain") is "world" 8 8 PASS clipboardData.setData("text/plain; charset=utf-8", "hello"); clipboardData.getData("text/plain; charset=Shift_JIS") is "hello" 9 PASS clipboardData.clearData("url"); clipboardData.getData("text/plain") is "hello" 9 10 PASS successfullyParsed is true 10 11 -
trunk/LayoutTests/editing/pasteboard/datatransfer-getdata-plaintext.html
r221063 r221067 20 20 shouldBeEqualToString('clipboardData.setData(" tEXT/pLaIN", "world"); clipboardData.getData("text/plain")', 'world'); 21 21 shouldBeEqualToString('clipboardData.setData("text/plain; charset=utf-8", "hello"); clipboardData.getData("text/plain; charset=Shift_JIS")', 'hello'); 22 shouldBeEqualToString('clipboardData.clearData("url"); clipboardData.getData("text/plain")', 'hello'); 22 23 document.getElementById('container').style.display = 'none'; 23 24 finishJSTest(); -
trunk/Source/WebCore/ChangeLog
r221065 r221067 1 2017-08-22 Ryosuke Niwa <rniwa@webkit.org> 2 3 Consolidate the code to normalize MIME type in DataTransfer 4 https://bugs.webkit.org/show_bug.cgi?id=175810 5 6 Rubber-stamped by Wenson Hsieh. 7 8 Address the forgotten review comment by Wenson. 9 10 Tests: editing/pasteboard/datatransfer-getdata-plaintext.html 11 12 * dom/DataTransfer.cpp: 13 (WebCore::DataTransfer::clearData): 14 1 15 2017-08-20 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebCore/dom/DataTransfer.cpp
r221063 r221067 124 124 125 125 String normalizedType = normalizeType(type); 126 if ( type.isNull())126 if (normalizedType.isNull()) 127 127 m_pasteboard->clear(); 128 128 else 129 m_pasteboard->clear( type);129 m_pasteboard->clear(normalizedType); 130 130 if (m_itemList) 131 m_itemList->didClearStringData( type);131 m_itemList->didClearStringData(normalizedType); 132 132 } 133 133
Note:
See TracChangeset
for help on using the changeset viewer.