Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

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

  • 1 răspuns
  • 2 au această problemă
  • 2 vizualizări
  • Ultimul răspuns de 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?

Modificat în de jproulx

Toate răspunsurile (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.