Funkcionalnosć tutoho sydła so přez wothladowanske dźěła wobmjezuje, kotrež maja waše dožiwjenje polěpšić. Jeli nastawk waš problem njerozrisuje a chceće prašenje stajić, wobroćće so na naše zhromodźenstwo pomocy, kotrež na to čaka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomhać.

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

Command line -new-tab with multiple windows

  • 3 wotmołwy
  • 2 matej tutón problem
  • 1 napohlad
  • Poslednja wotmołwa wot cor-el

more options

Hi,

I open tabs via a script and in the past I have been able to determine, specify, which window (I have multiple windows open) would be used by making sure that the window was "active". The way I did that was to simply open a new tab in the browser window and that would make it the "active" window and all command line -new-tab requests would open in that window.

For some reason that has quit working and all new tabs are opened in one of the windows. I have no idea why it's picking that window. Is there a way to determine which window will be used? And, more to the point, is there a way to specify the window that should be used?

I'm running Firefox 54.0 (32-bit) on Ubuntu 16.04.2.

Thanks,

Rob

Hi, I open tabs via a script and in the past I have been able to determine, specify, which window (I have multiple windows open) would be used by making sure that the window was "active". The way I did that was to simply open a new tab in the browser window and that would make it the "active" window and all command line -new-tab requests would open in that window. For some reason that has quit working and all new tabs are opened in one of the windows. I have no idea why it's picking that window. Is there a way to determine which window will be used? And, more to the point, is there a way to specify the window that should be used? I'm running Firefox 54.0 (32-bit) on Ubuntu 16.04.2. Thanks, Rob

Wšě wotmołwy (3)

more options

All tabs are probably opened in the window that is considered as the main (first) window. That is the window that is listed as the first window in the sessionstore.js file. When an extension is used then it would be possible to determine what the most recent use window is.

Browser Console:

  • Services.wm.getMostRecentWindow("navigator:browser").gBrowser.addTab("about:config");
more options

Hi,

Perhaps I'm looking in the wrong place, but I don't see a sessionstore.js file anywhere in the .mozilla/firefox directory.

more options

The sessionstore.js file is only present when Firefox is closed.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.