Shaving foam has 2 different meanings across 1 category:
Noun
toiletry consisting of a liquid preparation containing many small bubbles that soften the beard before shaving
A manufactured product with a frothy consistency, supplied in an aerosol can and used for shaving.