If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Input undo/redo buffers cleared after Javascript changes to input values

NEW
Unassigned

Status

()

Core
Layout: Form Controls
9 months ago
9 months ago

People

(Reporter: arni2033, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 months ago
>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open url [1] or url [2]
2. Click in input
3. Type "12", then press Backspace, then type "34"
4. Press Ctrl+Z several times

AR:
 Step 3 - all text in input is replaced to '7' (url [1]) or '' (url [2])
 Step 4 - all text in input disappears, and that's all

ER:  Either X or Y
    (depending on whether or not FF developers consider change made by JS as part of input)
 X) Step 4 - all text in input should be replaced with "134", then "1", then "12", then ""
 Y) Step 4 - all text in input should be replaced with "1", then "12", then ""

> [1] data:text/html,<input oninput="var I=document.querySelector('input'); if (I.value.length>2){ if(window.ind)return; window.ind=true; I.value='7';}">
> [2] data:text/html,<input oninput="var I=document.querySelector('input'); if (I.value.length>2){ if(window.ind)return; window.ind=true; I.value='';}">
(Reporter)

Updated

9 months ago
No longer blocks: 1277113
(Reporter)

Updated

9 months ago
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
All browsers seem to get confused by this.
You need to log in before you can comment on or make changes to this bug.