This article covers the Canon version of this subject.  Click here for Wookieepedia's article on the Legends version of this subject. 

OnACanonArticleGoToLegends

Firefoam, also known as high-expansion suppresion foam, was an anti-incendiary gas. In the event of a fire, a starship would spew firefoam from pressurized canisters through strategically positioned nozzles.[1]

Sources

Notes and references