Most of it is automatic. You can get this info here
Windows Vista Aero Glass in .NET Managed Win32 Applications[
^]
Basically, the method calls
DwmIsCompositionEnabled and if it returns
false, then Firefox probably has code that changes the background of (what we could say) the tabs control to whatever color they want to match.
By the way, you probably already can infer but the DwmIsCompositionEnabled determines if Windows Aero is on or off.