[Webkit-unassigned] [Bug 74059] WebKit consumes a lot of memory in unused undo stack on GMail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 8 10:50:51 PST 2011


--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2011-12-08 10:50:51 PST ---
(In reply to comment #1)
> In an ideal world we would remove all entries in the undo stack of editing roots that are garbage collected.

Right. But it's quite tricky because a node can be transition between editable root and non-editable root. Also, you can insert/remove a editable root from/to a document in undo/redo such that subsequent undo/redo depends on this root.  So being garbage collected isn't a sufficient condition for us to automatically remove entries.

Even removing all undo entries that belong to one frame is tricky in the world where we have implemented UndoManager & DOM Transaction spec because a node can move from one frame to another. Just because source or destination frame got removed doesn't mean we can remove all entries corresponding to those frames. In fact, one command can interact with arbitrary number of frames in theory.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list