Skip to content

[Bug]: Selecting text in the playground can clear selected text #38

Open
@danthe1st

Description

@danthe1st

What happened?

When selecting text in the playground, it's possible for the selected text to disappear in some cases.

Reproducer 1:

  • Open https://dev.java/playground/ without clicking anywhere
  • Select something in the editable playground snippet
    • It is important to not click anywhere in the browser window between reloading and selecting text
  • The selected part disappears

Reproducer 2 (might not happen every time):

  • Open https://dev.java/learn/api/streams/gatherers/
  • (optional) do something on that site
  • click outside of any playground snippet
  • Select something in the playground snippet without clicking in the playground snippet before
  • The selected content disappears

OS

Linux (Ubuntu 24.10)

What browsers are you seeing the problem on?

Firefox 136.0

Contact Details (optional)

No response

Additional information

I also have UBlock origin installed but it still happens when disabling it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions