⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264016 in webkit


Ignore:
Timestamp:
Jul 7, 2020, 6:57:38 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(r262680): [GTK] Crash in WebKit::DropTarget::didPerformAction
https://bugs.webkit.org/show_bug.cgi?id=213885

Reviewed by Michael Catanzaro.

Just compare if new operation is the same as the current one, the == operator of Optional already takes care of
values being nullopt.

  • UIProcess/API/gtk/DropTargetGtk3.cpp:

(WebKit::DropTarget::didPerformAction):

  • UIProcess/API/gtk/DropTargetGtk4.cpp:

(WebKit::DropTarget::didPerformAction):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r264014 r264016  
     12020-07-07  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r262680): [GTK] Crash in WebKit::DropTarget::didPerformAction
     4        https://bugs.webkit.org/show_bug.cgi?id=213885
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Just compare if new operation is the same as the current one, the == operator of Optional already takes care of
     9        values being nullopt.
     10
     11        * UIProcess/API/gtk/DropTargetGtk3.cpp:
     12        (WebKit::DropTarget::didPerformAction):
     13        * UIProcess/API/gtk/DropTargetGtk4.cpp:
     14        (WebKit::DropTarget::didPerformAction):
     15
    1162020-07-07  Tomoki Imai  <Tomoki.Imai@sony.com>
    217
  • trunk/Source/WebKit/UIProcess/API/gtk/DropTargetGtk3.cpp

    r262680 r264016  
    218218
    219219    auto operation = page->currentDragOperation();
    220     if ((!operation && !m_operation) || *operation == *m_operation)
     220    if (operation == m_operation)
    221221        return;
    222222
  • trunk/Source/WebKit/UIProcess/API/gtk/DropTargetGtk4.cpp

    r262680 r264016  
    274274
    275275    auto operation = page->currentDragOperation();
    276     if ((!operation && !m_operation) || operation == m_operation)
     276    if (operation == m_operation)
    277277        return;
    278278
Note: See TracChangeset for help on using the changeset viewer.