Bug 117092 - unexpected undo behavior after changing input value programatically
Summary: unexpected undo behavior after changing input value programatically
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-05-31 14:18 PDT by John Firebaugh
Modified: 2016-04-11 01:44 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Firebaugh 2013-05-31 14:18:09 PDT
To reproduce:

1. Load http://jsfiddle.net/zAmy9/
2. Select "1234" and press delete key
3. Click "Change Value"
4. Edit -> Undo

Expected result: Either undo is disabled, or it produces a blank value (the previous state)
Actual result: 67891234
Comment 1 John Firebaugh 2013-05-31 14:19:54 PDT
Other unexpected behaviors can also be observed:

1. Insert "0" between 2 and 3
2. Click "Change Value"
3. Undo

Result: 679
Comment 2 Ryosuke Niwa 2016-04-11 01:43:55 PDT
Confirmed on shipping Safari as well as Safari Technology Preview.
Comment 3 Radar WebKit Bug Importer 2016-04-11 01:44:46 PDT
<rdar://problem/25650777>