In case this helps anyone, in my case this turned out to be caused by the PayPal Honey for Safari extension.