If light has a mass how does it travel through glass?

If light (or its photons) have a mass how does it travel through glass? What effect does the light or its mass have on the medium through which it travels?