Closed Bug 126797 Opened 23 years ago Closed 23 years ago

Undo/Redo doesn't work in Text widgets, Composer, and Mail

Categories

(Core :: DOM: Editor, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: kinmoz, Assigned: kinmoz)

Details

(Keywords: regression, smoketest)

Attachments

(1 file)

Some nsDeque changes landed last night and one of the changes made to nsTransactionStack.cpp prevents undo/redo from working. I have a patch that fixes undo, but redo is not working at the moment, still investigating.
The nsDeque changes I was referring to were for bug 114166.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.9
Severity: normal → blocker
Attached patch Patch Rev 1Splinter Review
nsTransactionStack::Peek() was intended to return NULL for an empty stack so I changed timeless' change to return NS_OK and init the return value to zero. timeless also changed the behavior of nsDeque::End(), it no longer returns an interator that is one past the end. So nsTransactionStack::Peek() had to call CurrentItem() instead of operator--. I also backed out the changes to nsTransactionManager.cpp cause they are unnecessary with the changes made to nsTransactionStack::Peek().
Fix checked into TRUNK: mozilla/editor/txmgr/src/nsTransactionManager.cpp rev 1.38 mozilla/editor/txmgr/src/nsTransactionStack.cpp rev 1.18
Really marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy'd fixed with 2003.04.03. tested with html input fields, mail compose and composer.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: