Spittlebug nymphs protect themselves from predators and drying out by exuding a mass of tiny bubbles as they feed.
Spittlebug nymphs.

David Riley, University of Georgia, Bugwood.org