Closed Bug 1579366 Opened 6 years ago Closed 6 years ago

Console completion text isn't updated when autocomplete is disabled and popup isn't displayed

Categories

(DevTools :: Console, defect, P1)

All
Unspecified
defect

Tracking

(firefox71 verified)

VERIFIED FIXED
Firefox 71
Tracking Status
firefox71 --- verified

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

Steps to reproduce

  1. Go to about:config and turn off devtools.webconsole.input.autocomplete
  2. Open the console
  3. Type deb
  4. Hit Ctrl+Space to display the completion text (should be ugger)
  5. type u
  6. Hit Tab

Expected results

The input get completed to debugger

Actual results

The input get completed to debuugger


This is because the completion text wasn't updated

If the user triggered a force autocomplete (with Ctrl + Space)
that would result in having only the completion text, writing another
letter wouldn't update the completion text, that could then lead
into having an erroneous expression in the input.
This patch fixes this issue and add a test case to make sure we
don't regress this.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2ea036a387ec Update completion text when autocomplete is disabled and popup isn't opened. r=Honza.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71

Fix confirmed with 71.0b5 on Windows 10, macOS 10.13, Ubuntu 18.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: