mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-07 01:01:43 +00:00

Calling EditorBase::EnableUndoRedo() without argument means that editor supports unlimited undo/redo stack. AutoDisableUndo class calls it without argument when it needs to restore undo/redo feature. However, <input type="text"> and <textarea> limits number of maximum transactions up to 1,000, perhaps for footprint. So, AutoDisableUndo should store the last number of maximum transactions before disabling undo/redo from the constructor. MozReview-Commit-ID: CoI6ZXyTd3X --HG-- extra : rebase_source : e2b9af17e5857dcc0a6781e254e45fdb790c9a9e