Closed Bug 1959780 Opened 1 year ago Closed 1 year ago

The first time I click into a Google Doc's comment field, the cursor is on the right end of the comment field and I can't enter text.

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

VERIFIED FIXED
139 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox137 --- unaffected
firefox138 --- unaffected
firefox139 --- verified

People

(Reporter: cpeterson, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached image screenshot.png

If I select text in a Google Doc, click the button to add a new comment, then click in the comment popup's text field, my cursor will appear on the right edge of the text field and typing won't enter any text. See the attached screenshot.

If I click to change focus away and back to the text field, then the cursor will appear on the left as expected and text input will work.

Yannis bisected this regression to Emilo's fix for bug 1958639:

15:17.02 INFO: Last good revision: e6d4e3b73756c0847a99544db8b8c7480b11ae22
15:17.02 INFO: First bad revision: d1bc4a5a5404f308814581d7a7fb34ee75953404
15:17.02 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e6d4e3b73756c0847a99544db8b8c7480b11ae22&tochange=d1bc4a5a5404f308814581d7a7fb34ee75953404

Flags: needinfo?(emilio)
Attached file Reduced test-case.

This is the low risk fix, but I'm not sure I understand what this code
is doing / why are we not just returning the "inner" range for all
frames, including inlines.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Otherwise you can't insert stuff in something like an empty
inline-block, there are tests for that luckily, yay.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c9fadced05b5 Add a missing editing host check in GetRangeForFrame. r=masayuki
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec51400e8dd7 Make GetRangeForFrame() always return the inside range for non-replaced elements, not just blocks and editing hosts. r=masayuki
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139][qa-ver-needed-c140/b139]
Flags: qe-verify+
QA Contact: rpopovici

Reproducible on Nightly 139.0a1(2025-04-10) using Ubuntu 24.10 on Google Doc.
Verified as fixed using Ubuntu 24.10 on Beta 139.0b4 and the latest Nightly 140.0a1(2025-05-05) on Google Doc.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c140/b139][qa-ver-needed-c140/b139] → [qa-triage-done-c140/b139][qa-ver-done-c140/b139]
Regressions: 1969829
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: