To shit in your pants. References the color of fecal matter and Fruit Of The Loom underwear.
He thought he was going to let out a little fart but he ended up browning his looms! He had to stop what he was doing, go straight home and wash all that horror out of his pants. Treacherous!
(variation of "brown your looms")