Title: [261923] trunk/Source/WebCore
- Revision
- 261923
- Author
- [email protected]
- Date
- 2020-05-20 08:59:59 -0700 (Wed, 20 May 2020)
Log Message
REGRESSION(r261554): [GTK] Version 2.29.1 crashes using drag-n-drop API
https://bugs.webkit.org/show_bug.cgi?id=212136
Reviewed by Adrian Perez de Castro.
* platform/gtk/PasteboardGtk.cpp:
(WebCore::Pasteboard::read): Use m_selectionData if present.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (261922 => 261923)
--- trunk/Source/WebCore/ChangeLog 2020-05-20 15:52:36 UTC (rev 261922)
+++ trunk/Source/WebCore/ChangeLog 2020-05-20 15:59:59 UTC (rev 261923)
@@ -1,3 +1,13 @@
+2020-05-20 Carlos Garcia Campos <[email protected]>
+
+ REGRESSION(r261554): [GTK] Version 2.29.1 crashes using drag-n-drop API
+ https://bugs.webkit.org/show_bug.cgi?id=212136
+
+ Reviewed by Adrian Perez de Castro.
+
+ * platform/gtk/PasteboardGtk.cpp:
+ (WebCore::Pasteboard::read): Use m_selectionData if present.
+
2020-05-20 Philippe Normand <[email protected]>
[GStreamer] <img> tag needs to support video formats
Modified: trunk/Source/WebCore/platform/gtk/PasteboardGtk.cpp (261922 => 261923)
--- trunk/Source/WebCore/platform/gtk/PasteboardGtk.cpp 2020-05-20 15:52:36 UTC (rev 261922)
+++ trunk/Source/WebCore/platform/gtk/PasteboardGtk.cpp 2020-05-20 15:59:59 UTC (rev 261923)
@@ -305,6 +305,12 @@
void Pasteboard::read(PasteboardFileReader& reader)
{
+ if (m_selectionData) {
+ for (const auto& filePath : m_selectionData->filenames())
+ reader.readFilename(filePath);
+ return;
+ }
+
auto filePaths = platformStrategies()->pasteboardStrategy()->readFilePathsFromClipboard(m_name);
for (const auto& filePath : filePaths)
reader.readFilename(filePath);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes