Open Bug 1714883 Opened 3 years ago Updated 3 years ago

Caret browsing and moving the cursor in `designMode`/`contenteditable` doesn't work properly for certain display:none elements

Categories

(Core :: DOM: Selection, defect, P3)

Firefox 90
defect

Tracking

()

Tracking Status
firefox-esr78 --- wontfix
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- fix-optional

People

(Reporter: toasted.nutbread, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: parity-chrome, regression)

Attachments

(1 file)

Attached file caret-image-bug.html

When using caret browsing mode, caret will sometimes not be able to progress past certain elements when using the right arrow key. The caret will be "trapped" on the left side of the content.

To reproduce, test using the attached file:

  • Enable caret browsing (F7)
  • Put the caret at the start of "Before"
  • Use the right arrow key to move the caret
  • Note that the caret cannot move past the end of "Before"

The caret does seem to be able to move from right to left to cross the boundary. This does take an additional key press, but that is not as much of a problem.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

This also happens without caret browsing if you use document.designMode="on", or if you use contenteditable.

Would be interesting to know if it's a regression.

Status: UNCONFIRMED → NEW
Component: Layout → DOM: Selection
Ever confirmed: true

The bug can be reproduced in Firefox 3.0, but not in Firefox2.0.

QA Whiteboard: [qa-regression-triage]

(In reply to Alice0775 White from comment #3)

The bug can be reproduced in Firefox 3.0, but not in Firefox2.0.

Thank you Alice for the tip. Looking further into this on Windows10x64 it seems that 3.0b1 is a good build and 3.0b2 is the bad build. On 3.0b1 is a slight jerkiness when moving caret after Before word but it can be moved. Unfortunately, I don't know how to make a push log from these two builds.

Has Regression Range: --- → yes
Has STR: --- → yes
Summary: Caret browsing doesn't work properly for certain display:none elements → Caret browsing and moving the cursor in `designMode`/`contenteditable` doesn't work properly for certain display:none elements
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: