Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

How do I hide the address bar when fullscreening "popup" windows?

  • 6 ответов
  • 7 имеют эту проблему
  • 1 просмотр
  • Последний ответ от cor-el

more options

Sky TV's video player has a bad fullscreen implementation - you can make the player go true fullscreen but it reverts when it loses focus, so I can't multitask on my two monitors.

The best workaround I've found is to use their "pop-out" player, which opens a new "popup"-style window (locked address bar, no search bar etc.) and I can then fullscreen the window itself (rather than the player). This allows me to hide

- the window outline - the window title bar - the Windows start menu

and it stays fullscreened when it loses focus.

However, this does not hide the window address bar. On a normal Firefox fullscreened window this slides out of view after a short time; on the locked "popup" style window it does not.

On the offchance that treating "popup" windows differently is a deliberate Firefox security policy... can I disable it?

Sky TV's video player has a bad fullscreen implementation - you can make the player go true fullscreen but it reverts when it loses focus, so I can't multitask on my two monitors. The best workaround I've found is to use their "pop-out" player, which opens a new "popup"-style window (locked address bar, no search bar etc.) and I can then fullscreen the window itself (rather than the player). This allows me to hide - the window outline - the window title bar - the Windows start menu and it stays fullscreened when it loses focus. However, this does not hide the window address bar. On a normal Firefox fullscreened window this slides out of view after a short time; on the locked "popup" style window it does not. On the offchance that treating "popup" windows differently is a deliberate Firefox security policy... can I disable it?

Изменено Rawling

Выбранное решение

Well, this is embarrassing.

I went to try setting dom.disable_window_open_feature.location from true to false.

However, before so doing, I noticed that the popup window's address bar was now autohiding like normal.

I'll keep an eye on it in case it stops again, but for now chalk this one up to user stupidity.

Прочитайте этот ответ в контексте 👍 0

Все ответы (6)

more options

You can try to toggle all toolbars with this code in the Browser Console (Firefox/Tools > Web Developer). You can also use such code in a button button or assign it to a keyboard shortcut with an extension like keyconfig

You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to run the code.

var {classes:Cc,interfaces:Ci} = Components;
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var gB = wm.getMostRecentWindow("navigator:browser").window.document;
var nt = gB.querySelector("#navigator-toolbox");
var ds = nt.style.getPropertyValue("display") == "none";
nt.style.setProperty("display",ds?"-moz-box":"none","important");

You can temporarily switch to another browser window before switching back to the browser console to make that browser window the most recent window.

Изменено cor-el

more options

As it's a popup window, I can only open the Browser Console from a different window, and getMostRecentWindow returns that window.

If there's a way to get a different window, it might well work - it did a pretty good job of hiding everything on the regular window I tried it from!

more options

Type about:config<enter> in the address bar. If a warning screen comes up, press the Be Careful button. This is where Firefox finds information it needs to run. At the top of the screen is a search bar.

Type dom.disable Look thru the list, but Be Very Careful What You Change ! Change the setting to True to keep you in control.

more options

Выбранное решение

Well, this is embarrassing.

I went to try setting dom.disable_window_open_feature.location from true to false.

However, before so doing, I noticed that the popup window's address bar was now autohiding like normal.

I'll keep an eye on it in case it stops again, but for now chalk this one up to user stupidity.

more options

You only need to select the pop-up window after having opened the Browser Console or open the console before opening the pop-up to make that window the MostRecentWindow.

more options
var {classes:Cc,interfaces:Ci} = Components;
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var gB = wm.getMostRecentWindow("navigator:browser").window.document;
var nt = gB.querySelectorAll("#nav-bar,#PersonalToolbar,#TabsToolbar");
for(i=0;NT=nt[i];i++){
var ds = NT.style.getPropertyValue("display") == "none";
NT.style.setProperty("display",ds?"-moz-box":"none","important");
}