Reliably polyfilling `navigator.userActivation.hasBeenActive`?

navigator.userActivation is apparently still unavailable in Firefox according to MDN, and has only just been added to Safari. I’m wondering if there’s a simple way to polyfill it that I’m neglecting. I was originally using a window click event, but click events can be triggered by JS code, so that approach is unreliable.