I personally don't think the foam would be good at all. After all, Gas Cooling, is about vaporising fine droplets of water, to cool pyrolosis gasses, thus stopping them from reaching there "ideal Mixture" and possibly causing a Flash Over. Foam, as stated some where above, would stick to a surface, it would not vaporise or atomise therefore not cooling the gasses in the atmosphere, and it would cause a lot more water and foam related damage. - Not to mention , foam eats nearly all it comes in contact with....
I think some people have the wrong impression about compartment, yes, it is an extremely VITAL tool in combatting fire, but, if used incorrectly (or if the operator using the technique does it wrongle), it can cause alot more troubles.