Finding the tab associated with a DOM window
I'm adding some new functionality in a Firefox extension, TryAgain , that traps HTTP error codes (e.g. 500) and automatically retries loading the page after some interval. Trapping the codes works excellently, and I'm trying to tally the total number of retries and store this in the tab using Session Store . Unfortunately, right now I'm getting a reference to a DOM window (through interfaceRequestor.getInterface(Components.interfaces.nsIDOMWindow) ), but I need a reference to a tab, which is a nsIDOMNode as per nsISessionStore docs on setTabValue() . What I have so far (I've snipped the actual