Safari 5 Extension: How can I detect when a window's current tab has changed?
问题 I have a Safari 5 extension that contains a toolbar. Whenever the current tab changes, that toolbar should be updated. I would like to do something like this from my bar's script: safari.self.browserWindow.addEventListener("activeTab", tabChanged, false); However, that doesn't seem to work. I have tried a number of other event names as well: activeTab activeTabChanged onActiveTab onActiveTabChanged tab tabChanged onTab onTabChanged selectionChanged onSelectionChanged Does anybody know how to