Skip to content

Add support for properly handling system focus #44308

Closed

Description

@webbedspace

Describe the bug:
See title.

To Reproduce:

  1. Open this page:
<!doctype html>
<script>
    setInterval(()=>{
        document.body.style.background = document.hasFocus() ? `#444400` : `#ffffff`
    })
</script>
  1. Click outside Servoshell to unfocus its window(such as a blank spot on the taskbar)

On other browsers (Chrome and Fox), doing this changes the page to white.

Platform:
Windows 10

Activity

  1. added
    C-untriaged
    on Apr 17, 2026
  2. changed the title [-]`document.hasFocus()` should return `false` when Servoshell is not the focused window[/-] [+]Add support for properly handling system focus[/+] on Apr 17, 2026
  3. self-assigned this
    on Apr 17, 2026
  4. added a commit that references this issue on Sep 25, 2026
    15aa067
  5. added a commit that references this issue on Oct 6, 2026
    f511f69
  6. added a commit that references this issue on Oct 12, 2026
    ed61a98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions