When renaming a property name, show the current raw one instead of the trimmed one.

RESOLVED WONTFIX

Status

()

Firefox
Developer Tools: Object Inspector
--
enhancement
RESOLVED WONTFIX
2 years ago
5 months ago

People

(Reporter: Oriol, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
1. Inspect `({" a ": 1})`
2. Double click `a` to rename it
3. The edit field shows `a`, it should show ` a `
(Reporter)

Comment 1

2 years ago
Basically, in `activate`,

    let initialString = label.getAttribute("value");

should be

    let initialString = this._variable._nameString;

And there are also problems in `_save`:

    let initial = this.label.getAttribute("value");
    let current = this._input.value.trim();

should be

    let initial = this._variable._nameString;
    let current = this._input.value;

Will write a patch when I have time.

Updated

5 months ago
Severity: normal → enhancement
Status: NEW → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.