Changeset 146723 in webkit
- Timestamp:
- Mar 23, 2013 6:24:42 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146717 r146723 1 2013-03-23 Daniel Cheng <dcheng@chromium.org> 2 3 [Qt] editing/pasteboard/can-read-in-dragstart-event.html and /can-read-in-copy-and-cut-events.html are crashing 4 https://bugs.webkit.org/show_bug.cgi?id=113126 5 6 Reviewed by Ryosuke Niwa. 7 8 * platform/qt/TestExpectations: 9 1 10 2013-03-22 Peter Kasting <pkasting@google.com> 2 11 -
trunk/LayoutTests/platform/qt/TestExpectations
r146713 r146723 2714 2714 webkit.org/b/91611 [ Mac Win ] media/media-higher-prio-audio-stream.html [ Skip ] 2715 2715 2716 webkit.org/b/113126 editing/pasteboard/can-read-in-dragstart-event.html [ Crash]2717 webkit.org/b/113126 editing/pasteboard/can-read-in-copy-and-cut-events.html [ Crash]2716 webkit.org/b/113126 editing/pasteboard/can-read-in-dragstart-event.html [ Failure ] 2717 webkit.org/b/113126 editing/pasteboard/can-read-in-copy-and-cut-events.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r146721 r146723 1 2013-03-23 Daniel Cheng <dcheng@chromium.org> 2 3 [Qt] editing/pasteboard/can-read-in-dragstart-event.html and /can-read-in-copy-and-cut-events.html are crashing 4 https://bugs.webkit.org/show_bug.cgi?id=113126 5 6 Reviewed by Ryosuke Niwa. 7 8 The ClipboardQt implementation only allows reading or writing, not both. Attempting to read 9 when the clipboard is only writable will lead to a crash since the corresponding member will 10 be null. To prevent crashes, change the asserts to early returns. In the long term, the 11 correct fix is to unify the m_readableData and m_writableData members. 12 13 No new tests since no functionality in Qt port should change. 14 15 * platform/qt/ClipboardQt.cpp: 16 (WebCore::ClipboardQt::getData): 17 (WebCore::ClipboardQt::types): 18 (WebCore::ClipboardQt::files): 19 1 20 2013-03-23 Carlos Garcia Campos <cgarcia@igalia.com> 2 21 -
trunk/Source/WebCore/platform/qt/ClipboardQt.cpp
r146644 r146723 156 156 return m_readableData->text(); 157 157 158 ASSERT(m_readableData); 158 // FIXME: Per the spec, reading the clipboard in dragstart events should also be allowed. 159 // See https://bugs.webkit.org/show_bug.cgi?id=113126. 160 if (!m_readableData) 161 return String(); 162 159 163 QByteArray rawData = m_readableData->data(type); 160 164 QString data = QTextCodec::codecForName("UTF-16")->toUnicode(rawData); … … 188 192 return ListHashSet<String>(); 189 193 190 ASSERT(m_readableData); 194 // FIXME: Per the spec, reading the clipboard in dragstart events should also be allowed. 195 // See https://bugs.webkit.org/show_bug.cgi?id=113126. 196 if (!m_readableData) 197 return ListHashSet<String>(); 198 191 199 ListHashSet<String> result; 192 200 QStringList formats = m_readableData->formats(); … … 198 206 PassRefPtr<FileList> ClipboardQt::files() const 199 207 { 200 if (!canReadData() || !m_readableData->hasUrls()) 208 // FIXME: Per the spec, reading the clipboard in dragstart events should also be allowed. 209 // See https://bugs.webkit.org/show_bug.cgi?id=113126. 210 if (!canReadData() || !m_readableData || !m_readableData->hasUrls()) 201 211 return FileList::create(); 202 212
Note: See TracChangeset
for help on using the changeset viewer.