Awaiting settings before window.open left a blank tab; open about:blank on click then fill via blob URL.