Closed Bug 1948934 Opened 5 months ago Closed 1 month ago

New Sidebar should not show when in kiosk mode

Categories

(Firefox :: Sidebar, defect, P2)

defect

Tracking

()

VERIFIED FIXED
141 Branch
Tracking Status
firefox-esr140 --- verified
firefox141 --- verified
firefox142 --- verified

People

(Reporter: mkaply, Assigned: mkaply)

References

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(2 files)

Kiosk mode should not show the new sidebar.

This can be checked with

if (lazy.BrowserHandler.kiosk) {

See Also: → 1927457
Severity: -- → S3
Priority: -- → P2
Whiteboard: [fidefe-sidebar]

Hi Mike do you know if there's anything that would stop kiosk mode users getting experiments by default?

If experiments won't be enabled in this mode this is probably lower priority since it would need the new sidebar to be explicitly enabled. But if they would be exposed to experiments this is probably higher priority to fix sooner.

FWIW This is similar except it's messaging rather than experiments: See https://bugzilla.mozilla.org/show_bug.cgi?id=1597622 via https://searchfox.org/mozilla-central/rev/9a6de74c050b5fe7079b1302b9eed5c29453867a/browser/components/asrouter/modules/ASRouter.sys.mjs#1890

Flags: needinfo?(mozilla)

It's up to them to turn off experiments via policy. We don't explicitly exclude them.

Flags: needinfo?(mozilla)

Hello! Just FYI, this bug is definitely appearing in the wild. I've got a couple of digital signage kiosks which run Firefox on Fedora, and when I upgraded them to Fedora 42, I got the sidebar update. Here are a couple of things that I encountered:

  1. The sidebar appears in kiosk mode, but at least on my systems some actions are blocked - namely, the right click menu (where you go to hide the sidebar) doesn't work well. It appears when you right click, but then vanishes as soon as you move the mouse. I had to also attach a keyboard (usually these are completely free of input devices, mounted up on a wall) and use arrow keys to navigate the menu to hide the sidebar.
  2. Once I got through the input device gymnastics to hide the sidebar, that action didn't persist- when the browser was closed and reopened, the sidebar came back. In non-kiosk mode, it appears to me that the sidebar state is saved when the browser reopens. Not great for a system which is far from the nearest keyboard and mouse.
  3. It's not possible to change the sidebar.revamp preference through policies.json - about:policies shows an error stating that the "setting is blocked for stability reasons" or something like that.
  4. Changing sidebar.revamp to False in standard Firefox, then restarting the kiosk didn't work - I had to go into my digital signage ansible playbook and override the webpage to open about:config in kiosk mode, set sidebar.revamp to false, then change the playbook back and re-run it in order to turn the new sidebar off.

All told, it took me quite a long time to get this sorted out, and it was pretty frustrating. If I run into something like this again, I'll probably have to revert to Firefox ESR for these kiosks.

Duplicate of this bug: 1972180

if you disable the sidebar in the normal prefs , it stays closed.

(In reply to Hans K from comment #3)

Hello! Just FYI, this bug is definitely appearing in the wild. I've got a couple of digital signage kiosks which run Firefox on Fedora, and when I upgraded them to Fedora 42, I got the sidebar update. Here are a couple of things that I encountered:

  1. The sidebar appears in kiosk mode, but at least on my systems some actions are blocked - namely, the right click menu (where you go to hide the sidebar) doesn't work well. It appears when you right click, but then vanishes as soon as you move the mouse. I had to also attach a keyboard (usually these are completely free of input devices, mounted up on a wall) and use arrow keys to navigate the menu to hide the sidebar.
  2. Once I got through the input device gymnastics to hide the sidebar, that action didn't persist- when the browser was closed and reopened, the sidebar came back. In non-kiosk mode, it appears to me that the sidebar state is saved when the browser reopens. Not great for a system which is far from the nearest keyboard and mouse.
  3. It's not possible to change the sidebar.revamp preference through policies.json - about:policies shows an error stating that the "setting is blocked for stability reasons" or something like that.
  4. Changing sidebar.revamp to False in standard Firefox, then restarting the kiosk didn't work - I had to go into my digital signage ansible playbook and override the webpage to open about:config in kiosk mode, set sidebar.revamp to false, then change the playbook back and re-run it in order to turn the new sidebar off.

All told, it took me quite a long time to get this sorted out, and it was pretty frustrating. If I run into something like this again, I'll probably have to revert to Firefox ESR for these kiosks.

Thanks for flagging this. We are planning to roll out sidebar.revamp by default in the next few releases so we'll plan to get this addressed before then. Btw The sidebar.revamp pref is purely a feature flag and won't be staying around for long after we enable it for all users.

Thanks for flagging this. We are planning to roll out sidebar.revamp by default in the next few releases so we'll plan to get this addressed before then. Btw The sidebar.revamp pref is purely a feature flag and won't be staying around for long after we enable it for all users.

You can't enable this in default if kiosk is enforced, it's a security risk:

the sidebar opened allowing ANYONE to enter firefox prefs.

Example Start: /usr/bin/firefox -P netflix --kiosk --new-instance

I think, best option is, that --kiosk disables sidebar, no matter if enabled in the profile.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141]
Flags: qe-verify+
QA Contact: tzsoldos

I have reproduced this issue using Firefox 141.0a1 (2025.06.01) on Windows 11 and Ubuntu 22.
I can confirm this issue is fixed, I verified using Firefox 142.0a1 and 141.0b4 on Windows 11, Ubuntu 22 and on macOS 10.15 the new sidebar not shows in kiosk mode.

QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] → [qa-triage-done-c142/b141] [qa-ver-done-c142/b141]
Flags: qe-verify+
Duplicate of this bug: 1976452
Attachment #9500075 - Flags: approval-mozilla-esr140?

firefox-esr140 Uplift Approval Request

  • User impact if declined: Unable to block sidebar in kiosk mode
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Very low
  • Explanation of risk level: Just adds a kiosk check for sidebar
  • String changes made/needed: None
  • Is Android affected?: no
Attachment #9500075 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+

I can confirm this issue is fixed, I verified using Firefox 140.1.0esr on Windows 11, Ubuntu 22 and on macOS 10.15 the new sidebar not shows in kiosk mode.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: