Ammonium sulphate is the active ingredient. I'm wondering if it exists in solution or is dry mixed when sprayed. It's definitely powered by water. Sodium lauryl sulphate is the stuff they put in soap to make bubbles so it's probably a similar reaction and an extreme foaming action that puts out the fire.
<edit> Doh! Too slow! My Google-fu is weak this evening.