Please pardon my ignorance, relatively new to working with XULRunner.
I'm attempting to debug an issue with a XULRunner application and have hit a wall. We're using the app to load certain websites and retrieve layout information. After the scrape is done, we close the tab that the page has been loaded in. Occasionally, the number of tabs will grow continuously until memory is exhausted. Our theory is that the browser is hitting an unresponsive script which blocks execution indefinitely.
Is there a preference that can be set or something that will automatically kill tabs that hit an unresponsive script?
I've Googled around and the only thing I can find is
dom.max_script_run_time
which only allows you to specify how long to wait before popping up the "Unresponsive Script" dialog, but doesn't actually kill the tab.