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

Changeset 275885 in webkit


Ignore:
Timestamp:
Apr 13, 2021, 8:30:48 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK4] WTR crash in PlatformWebView::dismissAllPopupMenus()
​https://bugs.webkit.org/show_bug.cgi?id=224487

Patch by Carlos Garcia Campos <​cgarcia@igalia.com> on 2021-04-13
Reviewed by Philippe Normand.

This is because we are using a for loop to iterate children that are destroyed. We should not be destroying the
children, though, we should just hide them, since they are owned by the web view.

  • WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:

(WTR::PlatformWebView::dismissAllPopupMenus):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r275884 r275885  
     12021-04-13  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK4] WTR crash in PlatformWebView::dismissAllPopupMenus()
     4        https://bugs.webkit.org/show_bug.cgi?id=224487
     5
     6        Reviewed by Philippe Normand.
     7
     8        This is because we are using a for loop to iterate children that are destroyed. We should not be destroying the
     9        children, though, we should just hide them, since they are owned by the web view.
     10
     11        * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
     12        (WTR::PlatformWebView::dismissAllPopupMenus):
     13
    1142021-04-13  Aakash Jain  <aakash_jain@apple.com>
    215
  • trunk/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp

    r262414 r275885  
    251251    for (auto* child = gtk_widget_get_first_child(GTK_WIDGET(m_view)); child; child = gtk_widget_get_next_sibling(child)) {
    252252        if (GTK_IS_POPOVER(child))
    253             gtk_widget_unparent(child);
     253            gtk_widget_hide(child);
    254254    }
    255255#else
Note: See TracChangeset for help on using the changeset viewer.