Search Support

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.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

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

  • 1 antwoord
  • 2 hierdie probleem
  • 2 views
  • Laaste antwoord deur 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?

Gewysig op deur jproulx

All Replies (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.