Changeset 261923 in webkit


Ignore:
Timestamp:
May 20, 2020 8:59:59 AM (4 years ago)
Author:
Carlos Garcia Campos
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r261922 r261923  
     12020-05-20  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r261554): [GTK] Version 2.29.1 crashes using drag-n-drop API
     4        https://bugs.webkit.org/show_bug.cgi?id=212136
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * platform/gtk/PasteboardGtk.cpp:
     9        (WebCore::Pasteboard::read): Use m_selectionData if present.
     10
    1112020-05-20  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Source/WebCore/platform/gtk/PasteboardGtk.cpp

    r261802 r261923  
    306306void Pasteboard::read(PasteboardFileReader& reader)
    307307{
     308    if (m_selectionData) {
     309        for (const auto& filePath : m_selectionData->filenames())
     310            reader.readFilename(filePath);
     311        return;
     312    }
     313
    308314    auto filePaths = platformStrategies()->pasteboardStrategy()->readFilePathsFromClipboard(m_name);
    309315    for (const auto& filePath : filePaths)
Note: See TracChangeset for help on using the changeset viewer.