Identify tab within xul document opened inside a tab

22 Views Asked by At

When one xul document (chrome://myextension/content/mydoc.xul) opened inside two tabs, is there a way assign an unique id to each tab, so it would persist on page refresh?

I'm using modules for easy communication between two tabs, and I need a way store data for each tab independently, which will persist when tab is refreshed.

P.S. gBrowser is not accessible within content document of a tab(?) Right now I'm using window.name, which works for my needs, but it's value accessible to any document opened in the same tab.

0

There are 0 best solutions below