This is incorrect and indicates an architectural problem. It only happens for the Payment Request flow (not for the ApplePayJS flow), and has lead to subtle issues such as https://bugs.webkit.org/show_bug.cgi?id=259940.
<rdar://problem/113721390>