Closed Bug 1297250 Opened 8 years ago Closed 6 years ago

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

Categories

(DevTools :: Object Inspector, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Oriol, Unassigned)

Details

1. Inspect `({" a ": 1})`
2. Double click `a` to rename it
3. The edit field shows `a`, it should show ` a `
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.
Severity: normal → enhancement
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.