Open Bug 1343413 Opened 7 years ago Updated 2 years ago

Focus is lost when moving to tail of contenteditable

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

Tracking Status
firefox54 --- affected

People

(Reporter: m_kato, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [h2review-noted])

Attachments

(2 files)

ENV
===
macOS 10.12 / Windows 10
Firefox 54 Nightly

STEP
====
1. Browse data:text/html,<div><span contenteditable>A-B</span> <span>D-E</span></div>
2. Focus "A" into contenteditable
3. Push [arrow right] until caret is moving to tail of contenteditable
4. Push [arrow right]

RESULT
======
Focus is lost.
EXCEPTED RESULT
===============
Don't lost focus
s/EXCEPTED/EXPECTED/
Summary: Focus is lost when moving to tail of contenteditable on macOS → Focus is lost when moving to tail of contenteditable
Assignee: nobody → m_kato
DetermineElementToMoveFocus doesn't return next content, so MoveFocus clears focus unfortunately.  Although GetSelectionLocation returns content, when current selection is last of node, it will return next node.  So when returning node isn't focused node, GetFocusInSelection returns null as next content...
Blocks: 1328026
Attached patch Part 2. Add testSplinter Review
Whiteboard: [h2review-noted]

Are you still working on this? I wonder, because it might affect related bugs.

Flags: needinfo?(m_kato)

I am sorry . I don't work this now.

Flags: needinfo?(m_kato)
Assignee: m_kato → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: