commit b13e90b6db834deba5cf8e39f217d992b228a88e parent 0a19fef470c7a204d19788cd5c1615055ae8a6a4 Author: stransky <stransky@redhat.com> Date: Tue, 25 Nov 2025 10:12:32 +0000 Bug 2002206 [Linux] Don't delete layer manager for hidden popups r=emilio Linux used a workaround for Bug 1654938 but let's remove it and follow other platforms there. Differential Revision: https://phabricator.services.mozilla.com/D273965 Diffstat:
| M | widget/gtk/nsWindow.cpp | | | 10 | ---------- |
1 file changed, 0 insertions(+), 10 deletions(-)
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp @@ -9972,16 +9972,6 @@ void nsWindow::OnUnmap() { // Reset scale for hidden windows mCeiledScaleFactor = sNoScale; } - - // Until bug 1654938 is fixed we delete layer manager for hidden popups, - // otherwise it can easily hold 1GB+ memory for a long time. - // - // Don't do this for temporarily hidden popups tho, as remote content is not - // set up to survive the layer manager destruction of the containing window, - // see bug 1958695. - if (mWindowType == WindowType::Popup && !mPopupTemporaryHidden) { - DestroyLayerManager(); - } } // Apply workaround for Mutter compositor bug (mzbz#1777269).