How to Disable Browser Window Resizing in Firefox
In this article
Firefox does not have a built-in setting to lock the browser window size, so you cannot disable resizing with a simple checkbox. The only official way to prevent a Firefox window from being resized is to run it in kiosk mode, which removes the title bar, tabs, and address bar and forces the window to fill the screen without resize handles. For regular desktop browsing, you can approximate a locked size by using a window manager or by opening Firefox in a maximized state and avoiding the resize edges, but the browser itself will still allow resizing. This guide covers the kiosk-mode method, the limitations, and practical alternatives.
What You'll Need
- A Windows, macOS, or Linux computer with Firefox installed.
- Permission to create or edit a desktop shortcut (Windows) or run a terminal command (macOS/Linux).
- Basic familiarity with your operating system's file explorer or terminal.
Step-by-Step
- Understand what kiosk mode does. Kiosk mode launches Firefox full-screen with no window controls, no tabs, and no address bar. The window cannot be resized by dragging edges because those edges are gone. You exit with Alt+F4 (Windows/Linux) or Cmd+Q (macOS). This is the closest official equivalent to disabling resizing.
- Close all Firefox windows. Kiosk mode opens a new window; having existing windows open can cause confusion about which window is locked.
- Windows: create a shortcut with the kiosk flag. Right-click an empty area of your desktop, choose New > Shortcut, and enter the path to Firefox followed by a space and
-kiosk. The default path is usually"C:\Program Files\Mozilla Firefox\firefox.exe" -kiosk. Click Next, name the shortcut (for example, Firefox Kiosk), and click Finish. - Windows: test the shortcut. Double-click the new shortcut. Firefox should open full-screen without a title bar. Try dragging the window edges; you should not be able to resize it. Press Alt+F4 to close.
- macOS: run Firefox from Terminal with the kiosk flag. Open Terminal and type
/Applications/Firefox.app/Contents/MacOS/firefox -kioskthen press Return. Firefox opens in kiosk mode. To exit, press Cmd+Q. - Linux: run Firefox from Terminal with the kiosk flag. Open a terminal and type
firefox -kioskthen press Enter. The window opens full-screen without resize handles. Close it with Alt+F4 or by typingexitin the terminal if Firefox was launched in the foreground. - Optional: make kiosk mode launch automatically. On Windows, you can pin the kiosk shortcut to the taskbar or place it in your Startup folder (press Win+R, type
shell:startup, and copy the shortcut there). On macOS or Linux, create a shell script or desktop entry that runs the command above. - Verify the lock. With the kiosk window open, move the mouse to the screen edges and corners. You should not see resize cursors. The window should stay fixed at full screen. If you see a title bar or can drag edges, the flag was not applied correctly; repeat the shortcut or command exactly.
Common Mistakes
- Expecting a hidden setting. Firefox's Settings menu has no option called "disable window resizing" or "lock window size." Looking for it wastes time; kiosk mode is the supported route.
- Using the wrong flag. The flag is
-kiosk(one hyphen). Typing--kioskor-kiosk-modewill not work and may cause Firefox to ignore it. - Forgetting quotes around the Firefox path. On Windows, if the path contains spaces (as in Program Files), the shortcut target must wrap the executable path in quotes before the flag.
- Launching kiosk mode while Firefox is already running. The flag may be ignored because Firefox hands the request to the existing process. Close all Firefox windows first.
- Assuming kiosk mode locks the whole operating system. It only affects the Firefox window. Users can still switch apps, open other browsers, or use keyboard shortcuts unless you also configure OS-level restrictions.
Tips
- Use kiosk mode for public displays, digital signage, or a single-purpose terminal where you want a fixed full-screen Firefox window.
- If you need a specific window size rather than full screen, use your operating system's window manager tools (for example, tiling in Windows or third-party utilities) to snap Firefox to a size, but note that the user can still resize it afterward.
- Create a separate Firefox profile for kiosk use so that bookmarks, extensions, and history do not mix with your normal browsing. You can launch with
-kiosk -P "ProfileName"after creating the profile in the Profile Manager. - Test the shortcut or command on the target machine before deploying it, because display scaling and multiple monitors can affect how full-screen mode behaves.
- Remember that kiosk mode hides the address bar and tabs, so users cannot navigate away unless you provide links on the page itself.
Troubleshooting
- Firefox opens normally instead of kiosk mode. Check that all Firefox windows are closed, then confirm the flag is spelled
-kioskand placed after the executable path. On Windows, verify the shortcut target includes the quotes and the flag. - The window still has a title bar. Some Linux desktop environments may treat full-screen windows differently. Try pressing F11 to toggle full screen, or check your window manager's full-screen settings. Kiosk mode should remove the title bar; if it does not, the flag may not have been applied.
- You cannot exit kiosk mode. Use Alt+F4 on Windows and Linux, or Cmd+Q on macOS. If those are blocked, switch to another app with Alt+Tab (Windows) or Cmd+Tab (macOS) and close Firefox from the taskbar or Dock.
- The shortcut opens a blank window or an error. The path to firefox.exe may be wrong. Right-click your existing Firefox shortcut, choose Properties, and copy the exact Target path, then append the flag.
- Kiosk mode does not prevent resizing on a second monitor. Kiosk mode fills the screen it opens on. If you move the window to another monitor, behavior can vary. Keep the kiosk window on the primary display for consistent results.
Frequently Asked Questions
Can I disable window resizing in Firefox without kiosk mode?
No. Firefox has no setting to lock the window size. Kiosk mode is the only official way to remove resize handles and window controls. Any other method relies on your operating system's window manager, not Firefox.
Does kiosk mode work on all operating systems?
Yes, the -kiosk command-line flag is supported on Windows, macOS, and Linux. The exact command and shortcut creation steps differ by OS, as described above.
Will kiosk mode prevent users from closing Firefox?
No. Kiosk mode removes the window controls, but standard keyboard shortcuts like Alt+F4 and Cmd+Q still close the browser. To prevent closing, you would need OS-level kiosk software or policies.
Can I set a specific window size instead of full screen?
Firefox does not offer a built-in fixed-size window mode. You can use your operating system's window management tools to resize and position Firefox, but users can still resize it manually unless you use kiosk mode.
Does kiosk mode disable tabs and the address bar?
Yes. Kiosk mode hides the tab bar, address bar, and bookmarks toolbar, giving a clean full-screen view of the current page. Navigation must be provided through links on the page.
Is kiosk mode safe for public computers?
Kiosk mode alone is not a security lockdown. Users can still use keyboard shortcuts to switch apps or close Firefox. For public terminals, combine kiosk mode with operating system restrictions and a dedicated user account.