If the tab couldn't be closed using chrome.tabs.remove, regardless of the state of the contents (unresponsive, etc.), I think we'd consider that a bug in the extensions system.
On Mon, Dec 14, 2009 at 6:20 PM, vicente mantrana <vmantr...@gmail.com>wrote: > Well, this happened when certain webpages did not load and the tab became > unresponsive. Sometimes the same page load and nothing happen, the tab gets > closed. It is unpredictable, but the tab did not close when unresponsive. > > I am pondering it again, and what I did was a timer that prevented the tab > from living more than certain amount of time. Maybe is not the tab that is > failing to close, but the timer function that is not running because the > page gets unresponsive. So, the timer function is not called then the tab is > not closing. However, the timer function is set in the background page, so > it should not be disturbed by a tab that is unresponsive. > > > On Mon, Dec 14, 2009 at 7:31 PM, Antony Sargent <asarg...@chromium.org>wrote: > >> Sounds like a bug in the tabs API. Can you create a bug at >> http://crbug.com/new ? >> >> >> On Wed, Dec 9, 2009 at 6:21 AM, vm <vmantr...@gmail.com> wrote: >> >>> Is there any way we can kill an unresponsive tab programatically? >>> >>> I am writing an extension where I open pages in tabs, and process >>> them, then I close them. The problem is that some of them become >>> unresponsive sometimes and I would like to kill them after certain >>> amount of time (like a timeout). I tried using the tab close method, >>> but does not work when they are unresponsive. >>> >>> Also, I would like to prevent the "unresponsive page box" from >>> showing. Is that possible? >>> >>> Thanks >>> >>> vm >>> >>> -- >>> >>> You received this message because you are subscribed to the Google Groups >>> "Chromium-extensions" group. >>> To post to this group, send email to >>> chromium-extensi...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/chromium-extensions?hl=en. >>> >>> >>> >> > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.