Re: [mediacapture-main] Broken foreground detection (#752)

Operating system window focus is exposed through "focus" and "blur" events iff the user-agent is directing keyboard events to the navigable.  If the user-agent is taking keyboard events for its own widgets, then these "focus" and "blur" events are not dispatched.

Gecko exposes window focus, even when the user-agent is directing keyboard events to its own widgets, through [`:-moz-window-inactive`](https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-window-inactive), but I'm not aware of any standardized APIs already doing this.

-- 
GitHub Notification of comment by karlt
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/752#issuecomment-1297526781 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 31 October 2022 18:53:07 UTC