I would assume the foam was to act as a sponge for the gasoline so that it would not run down the street but stay beneath him.
You’re probably right. I never would have thought of that.