CartWeight: save/restore state via postMessage

[#79537460]