Complete web purchase from message (bug 1101995)

@muffinresearch r?

I've only tested with a dummy html page but it should work with your patch!
maybe `return a.origin || a.protocol + '//' + a.host;`