Summary: | TinyMCE: Undo still enabled after a location change, crashes if performed | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Petersen <c.petersen87> | ||||
Component: | HTML Editing | Assignee: | Justin Garcia <justin.garcia> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | Keywords: | InRadar | ||||
Priority: | P2 | ||||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
URL: | http://tinymce.moxiecode.com/example_full.php?example=true | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 6627 | ||||||
Attachments: |
|
Description
Chris Petersen
2006-02-08 22:41:45 PST
This bug is also in Radar as <rdar://4433765> Created attachment 6806 [details]
patch
undo/redo operations registered by subframes weren't cleared on a location change. clearUndoRedoOperations was only called from didOpenURL, and thus was only called for the main frame. At first I tried calling it for all childFrames in didOpenURL, but by the time that didOpenURL is called, all of the subframes have already been detached/destroyed. So I moved the call to clearUndoRedoOperations to closeURL, and it is now called for subframes as they are detached.
|