Bug 92577 - Place form reset action in the undo/redo stack
Summary: Place form reset action in the undo/redo stack
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 06:58 PDT by Adrián Chaves Fernández
Modified: 2016-04-11 01:28 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.