It would be nice to implement "consume user activation of Window" in Web Driver, as specified here: https://github.com/w3c/webdriver/pull/1695 The following commit could be useful to follow as how one might implement that: https://github.com/WebKit/WebKit/commit/dd64a1da3991691e2fa6873e15ff31b4506182f7
<rdar://problem/102634281>