From e5ee057e95ccd0fc634e69a8f181d0e9c06547fe Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 12 Dec 2021 10:26:30 +0100 Subject: [PATCH] userChrome/browser: fix kiosk mode Make sure the navigation bar is hidden again in kiosk mode. This patch adds the rest of MR 17 and a comment why it makes sense here. Fixes: #29 --- src/userChrome/browser.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/userChrome/browser.css b/src/userChrome/browser.css index 9a141d9..6e1782d 100644 --- a/src/userChrome/browser.css +++ b/src/userChrome/browser.css @@ -6,4 +6,13 @@ #browser { -moz-box-ordinal-group: 0 !important; } + + /* Hide navigation bar in kiosk mode (to prevent bug #29). We can assume FF + * is in kiosk mode when fullscreen and max-width conditions are met, + * because at this max-width the fullscreen button is hidden + * (see appMenu.css). */ + #nav-bar[inFullscreen], + #TabsToolbar[inFullscreen] { + display: none; + } }