From 2ae2965a5a10aff853e40a43a1db18f4fdc88a9d Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Fri, 17 Sep 2021 21:42:15 +0000 Subject: [PATCH] Bug 1695822 - Track mHasRemoteContent for windows created using nsAppShellService. r=hiro Differential Revision: https://phabricator.services.mozilla.com/D125776 --- xpfe/appshell/nsAppShellService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp index 86cddb3c7542..61d02fabd8b9 100644 --- a/xpfe/appshell/nsAppShellService.cpp +++ b/xpfe/appshell/nsAppShellService.cpp @@ -603,6 +603,9 @@ nsresult nsAppShellService::JustCreateTopWindow( if (aChromeMask & nsIWebBrowserChrome::CHROME_FISSION_WINDOW) widgetInitData.mFissionWindow = true; + if (aChromeMask & nsIWebBrowserChrome::CHROME_REMOTE_WINDOW) + widgetInitData.mHasRemoteContent = true; + #ifdef MOZ_WIDGET_GTK // Linux/Gtk PIP window support. It's Chrome Toplevel window, always on top // and without any bar.