Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Is there a programatic way (ie -remote) to close all tabs?

  • 1 ответ
  • 2 имеют эту проблему
  • 1 просмотр
  • Последний ответ от Matt Brubeck

more options

Hi,

I'm refreshing a kiosk system that was built around a pre-tabbed browsing version of Mozilla, now using Firefox12.

The one step from the old system I'm having trouble reimplementing is returning the browser to the default state of one tab open to the home page after a period of inactivity.

The old version calls -remote openURL to reload the home page. Thanks to this forum (https://support.mozilla.org/en-US/questions/926745) I can open the home page in the active tab rather than opening a new tab every time, but I still need to close all other tab programitically, can this be done or does that require GUI interaction?

Hi, I'm refreshing a kiosk system that was built around a pre-tabbed browsing version of Mozilla, now using Firefox12. The one step from the old system I'm having trouble reimplementing is returning the browser to the default state of one tab open to the home page after a period of inactivity. The old version calls -remote openURL to reload the home page. Thanks to this forum (https://support.mozilla.org/en-US/questions/926745) I can open the home page in the active tab rather than opening a new tab every time, but I still need to close all other tab programitically, can this be done or does that require GUI interaction?

Изменено jproulx

Все ответы (1)

more options

I don't think there's a command-line way to close tabs or windows. You could either kill the Firefox process and start a new one, or you could write a simple Firefox add-on to do the work. An existing add-on like Reset Kiosk might help.