Skip to content

Servo doesn't close embedder UI when page navigates #43364

Open

Description

@lukewarlow

Describe the bug:
If you open a select or color input (and presumably other such UI) if the page navigates before you close it, the UI stays open. This seems to result in various tests erroring.

To Reproduce:
Load data:text/html,<input type="color" id="input"><script>setTimeout(() => {window.location.href = "https://example.com";}, 5000);</script>, quickly click the input and wait, the page will navigate but the color picker will still be open.

Platform:
MacOS

Activity

  1. added
    C-untriaged
    on Mar 17, 2026
  2. lukewarlow commented on Mar 17, 2026

    @lukewarlow
    MemberAuthor

    data:text/html,<select id="select"><option>123</option><script>select.click();window.location.href = 'data:text/html,<select id="select"><option>123</option></select><script>select.click()<\/script>';</script> If you load this you get an error about widget ID reuse too.

  3. added
    A-content/script
    and removed
    C-untriaged
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/scriptA-servoshell

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions