Closed Bug 1622783 Opened 5 years ago Closed 4 years ago

Cursor should update position when console input is resized and caused lines to wrap

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox74 wontfix, firefox75 wontfix, firefox76 wontfix, firefox78 wontfix, firefox79 fixed)

RESOLVED DUPLICATE of bug 1624531
Tracking Status
firefox74 --- wontfix
firefox75 --- wontfix
firefox76 --- wontfix
firefox78 --- wontfix
firefox79 --- fixed

People

(Reporter: cfogel, Assigned: nchevobbe, Mentored)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached image cursorPostition.gif

Affected versions

  • 75.0b4; 73.0b6, 76.0a1 (2020-03-15)

Affected platforms

  • Windows 10, macOS 10.15, Ubuntu 18.04;

Steps to reproduce

  1. Launch Firefox, enable DevTools, select the Console tab;
  2. Type in the following expression:
    ` Spans with 'e': `+ Array.from(document.querySelectorAll("span")) .map(el => el.textContent) .filter(s => s.includes("e")) .join(" ")
  3. Ensure the mouse cursor is at the end of the string(can also click);
  4. Press CTRL+Shift+B(enable Multi-Line) mode;
  5. Repeat step 4;

Expected result

  • cursor is at the last character in the input;

Actual result

  • step 4: cursor is in the middle of the expression;
  • step 5: cursor is 1 row bellow even tho there were no extra space_characters pasted;

Regression range

  • will check if a regression and provide one asap;

Additional notes

  • attached recording with the issue.
Has Regression Range: --- → no
Has STR: --- → yes
Has Regression Range: no → yes

The issue here is that the cursor position should be updated if the expression is wrapped.
We should call refresh() on codeMirror when resizing the editor or switching between inline and editor mode.

Priority: -- → P3
Summary: Console - Swap between inline and multiline issue with cursor position in input string → Cursor should update position when console input is resized and caused lines to wrap
Mentor: nchevobbe

Hi,
I want to work on this bug could you please assign it to me?

sure, it's yours now :)

Assignee: nobody → shashikant.d
Status: NEW → ASSIGNED
Blocks: 1624531

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Assignee: shashikant.d → nobody
Severity: normal → S3
Status: ASSIGNED → NEW
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

This was fixed by Bug 1624531

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Quick check with 80.0a1 (2020-07-26), confirmed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: