Confirmed bug, and I copied over a potential fix from my own extension. I don't have Tor installed so I haven't tested with that (regarding the state control button comment line), but since it uses the same window I don't think it should cause any problems.
I think the added tab is much more user friendly than opening a new window.
As for the undefined browser (if/else).. You're probably right, I just copied it from my code where it's intended to be reusable (so I can call the same method when browser is defined). It will still work but the if/else is up to you whether you'd want in there or not.
I won't be able to test with Tor until this weekend. I'll give it a try and post my results.
It seems to work with Tor just fine for me. I'm not really a Tor user though, so it would be better if someone who knows it could verify that the fix is safe..
I attached the modified XPI for you to test. Thanks
Trac: Username: jacobske87 Status: assigned to needs_review