Windshield S/S trim seals

Then I need to know what seal/sealant goes under the side A Pillar S/S mouldings. One piece had a foam strip under it, but I doubt it is original.
The disassembly photos seem to show some kind of foam factory sealant having been applied along the A pillar post???

Hope someone can help!!
Thx