Tab List

April 22, 2022 ยท View on GitHub

  • Assigns a random timestamp based ID to each tab.
  • Keeps track of all browser tabs on the same origin.
  • Elects a leader tab. Tab with the lowest ID is the leader, i.e. the oldest tab Technically this will not be 100% accurate, but most of the time there will be a single leader.
  • Allows to establish a two-way communication channel between any two tabs.