Open Bug 1646674 Opened 4 years ago Updated 4 years ago

If textContent is set on mousedown element is not focused

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

77 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: joolschadwick, Assigned: edgar)

Details

(Keywords: parity-chrome)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

Navigate to the following:
https://jsfiddle.net/JoolsCaesar/0g9tpq28/
Click the words "Click me"

Actual results:

Nothing.

If you click outside of the text in the pale green area, focus is correctly given to the div, but if you click the text again, focus is lost.

Expected results:

The outer palegreen div should gain focus and be highlighted by a red border.

Works as expected in Chrome, Edge (Chromium & EdgeHTML), Opera.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core
Severity: -- → S2
Priority: -- → P2

It seems not a recent regression given that I could also reproduce this on 57. I will take a look.

Assignee: nobody → echen
Severity: S2 → S3
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.