During magma ascent, bubbles nucleate, grow, coalesce, and form a variably permeable porous network. The reorganization, failing and sealing of bubble walls may contribute to the opening and closing of the volcanic system. In this contribution we cause obsidian to nucleate and grow bubbles to high gas volume fraction at atmospheric pressure by heating samples to 950 • C for different times and we image the growth through a furnace. Following the experiment, we imaged the internal pore structure of selected samples in 3D and then dissected for analysis of textures and dissolved water content remnant in the glass. We demonstrate that in these high viscosity systems, during foaming and subsequent foam-maturation, bubbles near a free surface resorb via diffusion to produce an impermeable skin of melt around a foam. The skin thickens non-linearly through time. The water concentrations at the outer and inner skin margins reflect the solubility of water in the melt at the partial pressure of water in atmospheric and water-rich bubble conditions, respectively. In this regime, mass transfer of water out of the system is diffusion limited and the sample shrinks slowly. In a second set of experiments in which we polished off the skin of the foamed samples and placed them back in the furnace to allow open system outgassing, we observe rapid sample contraction and collapse of the connected pore network under surface tension as the system efficiently outgasses. In this regime, mass transfer of water is permeability limited. We conclude that diffusion-driven skin formation can efficiently seal connectivity in foams. When rupture of melt film around gas bubbles (i.e., skin removal) occurs, then rapid outgassing and consequent foam collapse modulate gas pressurization in the vesiculated magma. The mechanisms described here are relevant to the evolution of pore network heterogeneity in permeable magmas.