зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1641546 - Make the new WebRTC global sharing indicator a dialog instead of a popup. r=pbz
Depends on D77696 Differential Revision: https://phabricator.services.mozilla.com/D77504
This commit is contained in:
Родитель
39cc574a6e
Коммит
4cbbdd3058
|
@ -717,7 +717,7 @@ function getGlobalIndicator() {
|
||||||
if (!webrtcUI.useLegacyGlobalIndicator) {
|
if (!webrtcUI.useLegacyGlobalIndicator) {
|
||||||
const INDICATOR_CHROME_URI =
|
const INDICATOR_CHROME_URI =
|
||||||
"chrome://browser/content/webrtcIndicator.xhtml";
|
"chrome://browser/content/webrtcIndicator.xhtml";
|
||||||
let features = "chrome,titlebar=no,alwaysontop,minimizable=yes,popup=yes";
|
let features = "chrome,titlebar=no,alwaysontop,minimizable=yes";
|
||||||
|
|
||||||
/* Don't use dialog on Gtk as it adds extra border and titlebar to indicator */
|
/* Don't use dialog on Gtk as it adds extra border and titlebar to indicator */
|
||||||
if (!AppConstants.MOZ_WIDGET_GTK) {
|
if (!AppConstants.MOZ_WIDGET_GTK) {
|
||||||
|
|
|
@ -8,11 +8,17 @@
|
||||||
<script><![CDATA[
|
<script><![CDATA[
|
||||||
add_task(async function testAlwaysOnTop() {
|
add_task(async function testAlwaysOnTop() {
|
||||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||||
let topWin = docShell.rootTreeItem.domWindow;
|
let topWin = window.docShell.rootTreeItem.domWindow;
|
||||||
await SimpleTest.promiseFocus(topWin);
|
await SimpleTest.promiseFocus(topWin);
|
||||||
is(Services.focus.activeWindow, topWin, "Top level window is focused");
|
is(Services.focus.activeWindow, topWin, "Top level window is focused");
|
||||||
|
|
||||||
let newWin = Services.ww.openWindow(null, "about:blank", null, "chrome,alwaysontop,width=300,height=300", null);
|
let newWin = Services.ww.openWindow(
|
||||||
|
null,
|
||||||
|
"about:blank",
|
||||||
|
null,
|
||||||
|
"chrome,alwaysontop,width=300,height=300",
|
||||||
|
null
|
||||||
|
);
|
||||||
await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
newWin.addEventListener("load", resolve, { once: true });
|
newWin.addEventListener("load", resolve, { once: true });
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче