[Webkit-unassigned] [Bug 219472] document.hasFocus() is true while URL bar has focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 3 20:46:14 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219472

--- Comment #4 from jib at mozilla.com ---
Actually yes, there is a practical application. Several specs have attempted to define similar "visible and focused" criteria for features that would be creepy to activate (or in some cases resume) from background tabs, minimized windows/apps, and maybe even from (partially) visible windows other than the one the user is currently engaging with:

 - https://github.com/w3c/mediacapture-main/issues/752 (what motivated me)
 - https://github.com/immersive-web/webxr/issues/747
 - https://github.com/w3c/sensors/issues/222

They've all crafted language that relies in some part on HTML's concept of focus, and they're all broken right now.

Would you mind elaborating on what "visual focus" is? Because that sounds interesting, as I'm realizing it may in fact not be desirable to delay camera turning on just because the user has focused the URL bar...

If Safari's behavior ends up making more sense here, it might be good to try to capture it in the spec somehow. Open to ideas.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201204/b3f10887/attachment.htm>


More information about the webkit-unassigned mailing list