Closed Bug 1644662 Opened 5 years ago Closed 5 years ago

autocomplete element access with autoclose bracket enabled insert extra closing quote and bracket

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(firefox-esr68 unaffected, firefox-esr78 verified, firefox77 wontfix, firefox78 verified, firefox79 verified)

VERIFIED FIXED
Firefox 79
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- verified
firefox77 --- wontfix
firefox78 --- verified
firefox79 --- verified

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce

  1. Open the console
  2. Type document["a
  3. The input should be document["a|"] because autoclose bracket is enabled
  4. Hit Enter to accept the completion of activeElement

Expected results

The input is now document["activeElement"]

Actual results

The input is now document["activeElement"]"] (note the extra closing quote and bracket)

Severity: -- → S4
Priority: -- → P2

When the autoclose bracket addon is enabled, quotes and ] are automatically
inserted, but that wasn't taken into account in the function that is in charge
of setting the input value when the user accept the autocompletion.
This patch should fix this, and add a few tests to makes sure we don't regress.

Depends on D78935

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50d4094fc4e1 Fix accepting element access autocompletion with autoclose bracket enabled. r=bomsy.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79

The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(nchevobbe)
Flags: needinfo?(nchevobbe)

Comment on attachment 9155650 [details]
Bug 1644662 - Fix accepting element access autocompletion with autoclose bracket enabled. r=bomsy.

Beta/Release Uplift Approval Request

  • User impact if declined: Incorrect input in the console when using the autocompletion with brackets
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See steps from Comment 0
  • List of other uplifts needed: Bug 1644158
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): DevTools only, covered by automated test
  • String changes made/needed:
Attachment #9155650 - Flags: approval-mozilla-beta?
Flags: qe-verify+

I'm a bit confused since you set status-firefox78 to wontfix and then requested uplift; which is it? :)

Flags: needinfo?(nchevobbe)
QA Whiteboard: [qa-triaged]

ugh sorry, that's what happen when you try to do many things at the same time.

Flags: needinfo?(nchevobbe)

Reproduced the issue on Nightly 79.0a1 (20200610214041)
Verified fixed on Nightly 79.0a1 (20200616215006)

Comment on attachment 9155650 [details]
Bug 1644662 - Fix accepting element access autocompletion with autoclose bracket enabled. r=bomsy.

approved for 78.0b9

Attachment #9155650 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified fixed on Beta 78.0b9 (20200619002543) and 78.0esr (20200623021425)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: