Bug 92577

Summary: Place form reset action in the undo/redo stack
Product: WebKit Reporter: Adrián Chaves Fernández <adriyetichaves>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: enrica, jonlee, rniwa, sukolsak, tkent, wenson_hsieh
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Adrián Chaves Fernández 2012-07-28 06:58:34 PDT
While you can undo editing fields, to recover the previous values, once you click a reset button (button[type=reset] or input[type=reset]), you loose any change.

This might lead to massive data loss if the reset button is activated by accident.

It would be great if the reset action were stored in the undo/redo stack.
Comment 1 Kent Tamura 2012-07-30 16:37:05 PDT
It sounds nice.
We have a feature to save/restore form control state.  See WebCore/html/FormController.{cpp.h}. It might be reusable for the undo/redo stack.