Actually it's the ocean "skimming" the water. All that foam is fish waste, salt, and all the impurities of the ocean. You can buy a skimmer for a saltwater fish tank as well and it creates that foam. It's done by the movement of the water and the air.
Abusive comment hidden.
(Show it anyway.)