When you click on the PayPal Button in v2 of the API, the browser's toolbar etc is also greyed out and not accessible. It is re-enabled when the PayPal process finishes. The actions are the same as if it was a modal popup BUT it applies to the whole browser.
Presumably this is a function built into the PayPal API but I didn't think this was possible but it obviously is.
Anyone know the script to do this?
I think that this is a Firefox specificity. I explain:
When you try to pay with a PayPal account, it opens a new browser window to authenticate you to your PayPal account (so the website itself doesn't know what you're typing - security reasons).
When Firefox launches this new window, it disables the "parent" window interactions.
I don't have any source to prove this, but that's how some Electron windows work, so I think that's how it's working.
You should take a look at the window.open implementation in Firefox to be sure.