- From: Elad Alon via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 Sep 2021 11:13:45 +0000
- To: public-webrtc-logs@w3.org
> What is the reason for the 1 second if I may ask ? Please note that 1s is the hard-limit, and normally the window of opportunity to calling `focus()` would close even earlier - as soon as the microtask on which the `Promise` was resolved is completed. (The 1s hard-limit prevents the application from keeping that microtask running for N seconds and then switching focus.) The rationale for these limitations is preventing attacks where the capturing application induces the user to click at a chose location in the captured application by switching focus at just the right time. As a somewhat contrived example, imagine the capturing application presenting at _just_ the right location a button labelled "double-click here to confirm" and then switching focus after it registers the first click. -- GitHub Notification of comment by eladalon1983 Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-914215522 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 September 2021 11:13:47 UTC