+++ This bug was initially created as a clone of Bug #596256 +++
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b6pre) Gecko/20100913 Firefox/4.0b6pre
As talked on bug 596256 we need a way to be able to detect in which tabgroup a tab is contained. I talked with Mitcho on IRC and we came up with a solution that we can add a DOM attribute to any of the tabs which references the tabgroup. That would solve all of our problems and we could implement real ui testing with Mozmill.
Thanks Mitcho for that idea!

Note, to be specific, the idea is to add a DOM attribute (data-group attribute?) to all div.tab elements with the group id. Then also have an attribute on div.group elements which encode the group id's.

Henrik, I'm assigning this to you. Please unassign if you aren't the right person. I'm also moving this to post Firefox 4, because I don't think we will block on it? That said, I'd love to get the fix in.
Feel free to disagree and we'll discuss.

Sadly I don't have time to work on code for TabCandy. I would love to see a fix for Firefox 4, but given other higher priority bugs on your side and our workaround, this is probably a future targeted one. :/
I don't think that this is a too hard to implement patch. So lets put the good first bug entry into the whiteboard.

Functional testing wise it would be a great improvement for us. It would make our life way easier to retrieve the list of tabs for a given tabgroup by simply using querySelector with the tabgroup class name.

(In reply to Henrik Skupin (:whimboo) from comment #8)
> Functional testing wise it would be a great improvement for us. It would
> make our life way easier to retrieve the list of tabs for a given tabgroup
> by simply using querySelector with the tabgroup class name.
Ok, cool, this is an easy fix and doesn't cause too much hassle. Let's do it.