window.name is persistent across torbutton toggle
If window.name is assigned by a website, it's value can be read by any JavaScript running in the same tab at any point in the future, regardless of what website the JavaScript is from.
Trac:
Username: katmagic