Flow DiagramEdit this page on GitHub
- Opener/Parent tab(
P) opens up a new Child tab(C). Cinitiates a handshake with thePtab by sending apostMessage.Packnowledges the request and sendsCit's identity i.e.UUIDalong withPinformation.- This sets up a communication channel between Parent and Child tab.
- Now,
PandCcan share custom messages with each other. - Whenever
Cgets closed/refreshed,Pis notified. - Whenever
Pis closed/refreshed, all children ofPtab gets notified.

Explanation of diagram
- Parent(
P) opens CHild tab(C1) att=1. c1a- WhenC1initiates a handshake with the Parent.P1- WhenPreceivesC1message.P2-Packnowledges the request and sends theC1its identity.c1b- WhenC1receives acknowledgemnet message along with identity fromP.
Total Tabs Associated: 1 | Opened Tabs: 1 | Closed Tabs: 0
- Parent(
P) opens CHild tab(C2) att=10. c2a- WhenC2initiates a handshake with the Parent.P3- WhenPreceivesC2message.P4-Packnowledges the request and sends theC2its identity.c2b- WhenC2receives acknowledgemnet message along with identity fromP.
Total Tabs Associated: 2 | Opened Tabs: 2 | Closed Tabs: 0
c1c- TabC1closes.P5-Pis notified about theC1. Parent updates the list.
Total Tabs Associated: 2 | Opened Tabs: 1 | Closed Tabs: 1
- Parent(
P) opens CHild tab(C3) att=25. c3a- WhenC3initiates a handshake with the Parent.P6- WhenPreceivesC3message.c2c- TabC2sends acustommessage.P7- WhenPreceives a message from tabC2. It processes it.P8-Packnowledges the request and sends theC3its identity.c3b- WhenC3receives acknowledgemnet message along with identity fromP.
Total Tabs Associated: 3 | Opened Tabs: 2 | Closed Tabs: 1
- When Parent Tab
Pis closed, all the opened tabs are notified about it.