Quantum foam is a poetic name that Wheeler coined to describe the analogy of the QCD vacuum. One is supposed to picture teeming geometries bubbling in and out of existence.
It is a vague concept that has no clear mathematical definition, and depending on how one views it, it could apply to both string theory, lqg or to neither one.