Closed
Bug 1473515
Opened 7 years ago
Closed 7 years ago
AutoDisableUndo always re-enables undo with unlimited
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | wontfix |
firefox61 | --- | wontfix |
firefox62 | --- | wontfix |
firefox63 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: regression)
Attachments
(1 file)
https://searchfox.org/mozilla-central/rev/6ef785903fee6c0b16a1eab79d722373d940fd78/dom/html/nsTextEditorState.cpp#184
The destructor of AutoDisableUndo always calls EditorBase::EnableUndoRedo() without argument. Then, -1 is used for unlimited undo/redo stack:
https://searchfox.org/mozilla-central/rev/6ef785903fee6c0b16a1eab79d722373d940fd78/editor/libeditor/EditorBase.h#415
However, typically, <input> and <textarea> is limited to 1000.
https://searchfox.org/mozilla-central/rev/6ef785903fee6c0b16a1eab79d722373d940fd78/dom/html/nsTextEditorState.cpp#1517
https://searchfox.org/mozilla-central/rev/6ef785903fee6c0b16a1eab79d722373d940fd78/dom/html/nsITextControlElement.h#190
So, AutoDisableUndo should store the limitation of undo/redo stack before disabling it.
Assignee | ||
Comment 1•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8990008 [details]
Bug 1473515 - Make AutoDisableUndo restores enabled state of undo/redo with previous number of maximum transactions
https://reviewboard.mozilla.org/r/255030/#review262094
Attachment #8990008 -
Flags: review?(m_kato) → review+
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/1814ad4986ce
Make AutoDisableUndo restores enabled state of undo/redo with previous number of maximum transactions r=m_kato
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Updated•7 years ago
|
status-firefox61:
--- → wontfix
status-firefox62:
--- → wontfix
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → wontfix
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•