Bug 1816436 - For webrtcIndicator use dialog everywhere. r=mconley

GTK will no longer draw a border and titlebar with titlebar=no.

Differential Revision: https://phabricator.services.mozilla.com/D169782
This commit is contained in:
Andreas Pehrson 2023-02-16 14:50:23 +00:00
Родитель 2ce250df31
Коммит 2e22dd570a
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -1003,12 +1003,7 @@ function getGlobalIndicator() {
if (!webrtcUI.useLegacyGlobalIndicator) {
const INDICATOR_CHROME_URI =
"chrome://browser/content/webrtcIndicator.xhtml";
let features = "chrome,titlebar=no,alwaysontop,minimizable=yes";
/* Don't use dialog on Gtk as it adds extra border and titlebar to indicator */
if (!AppConstants.MOZ_WIDGET_GTK) {
features += ",dialog=yes";
}
let features = "chrome,titlebar=no,alwaysontop,minimizable,dialog";
return Services.ww.openWindow(
null,