diff options
author | Moonchild <moonchild@palemoon.org> | 2023-03-18 19:56:53 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-03-18 19:57:56 +0100 |
commit | ce68156cf4f37f9c3e15b2262222247585d60e1b (patch) | |
tree | 0ebcecfdad03259bad8db3001cdd1bcf4d4d3c02 | |
parent | 5032ad959342dab044042c2f690bce35b444a719 (diff) | |
download | uxp-RB_20230320.tar.gz |
Revert "[widget] Linux GTK3: Detach accessible from moz_container before it's deleted"RB_20230320
This reverts commit 465a18f34286f8d7e0c9b5f0722d487b4812fb57.
Resolves #2168
-rw-r--r-- | widget/gtk/nsWindow.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 3de20ed5a4..6f222a7059 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -773,15 +773,6 @@ nsWindow::Destroy() } #endif /* MOZ_X11 && MOZ_WIDGET_GTK == 2 && defined(MOZ_X11) */ -#if (MOZ_WIDGET_GTK == 3) && defined(MOZ_X11) - // We need to detach accessible object here because mContainer is a custom
- // widget and doesn't call gtk_widget_real_destroy() from destroy handler
- // as regular widgets.
- if (AtkObject* ac = gtk_widget_get_accessible(GTK_WIDGET(mContainer))) {
- gtk_accessible_set_widget(GTK_ACCESSIBLE(ac), nullptr);
- }
-#endif
- GtkWidget *owningWidget = GetMozContainerWidget(); if (mShell) { gtk_widget_destroy(mShell); |