A number of these sorts of "What is this" posts on Reddit about mysterious yellowish blobs, end up being polyurethane expanding foam.
They float, and their default state is "mysterious blob", the only action necessary to create this is to puncture the aerosol container. Most people who use them end up throwing away an aerosol container that's still half full, but which has hardened at the dispenser tip.