Bug 25606 - Need a way to catch undo/redo (and cancel) in WebKit
Summary: Need a way to catch undo/redo (and cancel) in WebKit
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 25607
  Show dependency treegraph
 
Reported: 2009-05-06 22:20 PDT by Eric Seidel (no email)
Modified: 2017-07-18 08:30 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-05-06 22:20:52 PDT
Need a way to catch undo/redo (and cancel) in WebKit

HTML editing libraries at Google need a way to catch undo/redo (besides just listening for the DOM mutation events) so that they can keep internal state relating to the document, beyond just the HTML.  Without being able to catch these mutating events (and ideally canceling them!) WebKit just smashes over the DOM and the HTML editing libraries have to clean up after it.

HTML5 has some nascent undo/redo apis:
http://www.whatwg.org/specs/web-apps/current-work/#undo

but we're going to need something a bit more full featured in the future.