Chemicals including Ammonia will NOT, I repeat NOT seep through the glass without permanently altering the structure of the glass. And that would make for a hell of a mess on your floor! If so, those jars in your grandmother's basement with who knows what inside would not be as full after years! Quality glass is both inert and non-porous.
Just an example to help make you feel a little better, take a light bulb. A typical incandescent bulb is a thin (<1/32") ball of glass with a vaccuum inside (no air). Air is much smaller than most common chemicals, and if air could seep through the glass, Edison would have been pissed. LOL