Please see the uploaded test.html
Since the bug is relevant to both the contenteditable feature and the shadow DOM, so I am CC'ing both of you.
Editor initializes caret/selection at receiving focus event. So, the editable element does not receive focus event or the focus event listener of editor is not shadow DOM aware.
Also faced this issue, reproduced here: https://jsfiddle.net/webpadawan/g6vku9L3/
In the "move-focus to the inner element inside the shadow DOM" case, in all browsers, there's no extra focus event dispatched. So editor should probably use a different method other than regular event listeners in order to handle this.
Olli, do we have an easy way to somehow end up dispatching the focus event here at least for the system event handlers? Or should we just move that focus event handler to get notified via nsFocusManager instead or such?
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.