搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

New window does not get focus if opened externally

  • 無回覆
  • 1 有這個問題
  • 8 次檢視
more options

If Firefox is already running, opening a link in a new window from outside of Firefox will launch the new window and open the URL however the new window will not get focus.

This is easy to reproduce by starting Firefox and then from a terminal running `firefox --new-window` or `xdg-open http://`.

I believe this is a bug as it is inconsistent with the behaviour of:

  • Opening a new window from within Firefox (new window gets focus)
  • Opening a new window when Firefox is not running (Firefox window gets focus)
  • Opening a link in a new tab when Firefox is running `firefox --new-tab https://bbc.co.uk` or `firefox https://bbc.co.uk` (existing window with the new tab gets focus)

Tested on Debian Linux using Firefox 112.0.1 (AMD64).

If Firefox is already running, opening a link in a new window from outside of Firefox will launch the new window and open the URL however the new window will not get focus. This is easy to reproduce by starting Firefox and then from a terminal running `firefox --new-window` or `xdg-open http://`. I believe this is a bug as it is inconsistent with the behaviour of: * Opening a new window from within Firefox (new window gets focus) * Opening a new window when Firefox is not running (Firefox window gets focus) * Opening a link in a new tab when Firefox is running `firefox --new-tab https://bbc.co.uk` or `firefox https://bbc.co.uk` (existing window with the new tab gets focus) Tested on Debian Linux using Firefox 112.0.1 (AMD64).