Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Browser events

Arnaud Leymet edited this page Aug 14, 2011 · 3 revisions

Browser events happen whenever you interact with your browser.
There are many types of events in Google Chrome, but the major ones are tabs events and windows events.
Tab Sugar uses these to ensure that the Tab Sugar dashboard is always an up-to-date representation of your browser state.

Browser interactions Browser events Database Dashboard
chrome.windows.*
BI01 – Create a window – onCreated create group1 create group1
BI02 – Focus a window – onFocusChanged TBD TBD
BI03 – Close a window – onRemoved delete group hide & delete group
chrome.tabs.*
BI04 – Attach a tab to a window – onAttached TBD TBD
BI05 – Create a tab – onCreated new tab1 new tab1
BI06 – Detach a tab from a window – onDetached TBD TBD
BI07 – Move a tab within a window – onMoved update tab move tab from group1 to group2
BI08 – Close a tab – onRemoved delete tab (& group if empty) hide & delete tab (& group if empty)
BI09 – Select a tab – onSelectionChanged capture the tab update the capture preview
BI10 – Update a tab – onUpdated update tab update tab

1 If the current page is a special page then nothing happens: this page is neither saved in the database nor displayed in the dashboard.

Clone this wiki locally