From 63d4dc0a2e6740f7e1e116acedc386f1ac514cae Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 17 Jan 2023 12:23:51 +0300 Subject: [PATCH] firefox-109.0 --- ...and-Check-size-for-valid-EGLWindows-.patch | 25 +++++++++++++++++++ network/web/firefox/pspec.xml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 network/web/firefox/files/0002-Bug-1804973-Wayland-Check-size-for-valid-EGLWindows-.patch diff --git a/network/web/firefox/files/0002-Bug-1804973-Wayland-Check-size-for-valid-EGLWindows-.patch b/network/web/firefox/files/0002-Bug-1804973-Wayland-Check-size-for-valid-EGLWindows-.patch new file mode 100644 index 0000000000..4735a44c78 --- /dev/null +++ b/network/web/firefox/files/0002-Bug-1804973-Wayland-Check-size-for-valid-EGLWindows-.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: stransky +Date: Thu, 15 Dec 2022 08:09:22 +0000 +Subject: [PATCH] Bug 1804973 [Wayland] Check size for valid EGLWindows only + r=emilio + +Differential Revision: https://phabricator.services.mozilla.com/D164651 +--- + widget/gtk/MozContainerWayland.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/widget/gtk/MozContainerWayland.cpp b/widget/gtk/MozContainerWayland.cpp +index 954c650af533..2a4a492077c3 100644 +--- a/widget/gtk/MozContainerWayland.cpp ++++ b/widget/gtk/MozContainerWayland.cpp +@@ -704,6 +704,9 @@ bool moz_container_wayland_egl_window_needs_size_update(MozContainer* container, + nsIntSize aSize, + int aScale) { + MozContainerWayland* wl_container = &container->wl_container; ++ if (!wl_container->eglwindow) { ++ return false; ++ } + if (wl_container->buffer_scale != aScale) { + return true; + } diff --git a/network/web/firefox/pspec.xml b/network/web/firefox/pspec.xml index 20f14957cf..e05485f5f9 100644 --- a/network/web/firefox/pspec.xml +++ b/network/web/firefox/pspec.xml @@ -74,7 +74,7 @@ jack-audio-connection-kit-devel - + 0002-Bug-1804973-Wayland-Check-size-for-valid-EGLWindows-.patch