Window/Roof trim double stick foam??

I removed the trim under the rain gutter that holds the rubber gasket seal and has a chrome outer edge to polish and clean. When I pulled it off, it had a black foam double stick on gasket which is about an inch wide. Does anybody here know what it is called and where I can buy it to replace the damaged one? Thanks