Bug 25606

Summary: Need a way to catch undo/redo (and cancel) in WebKit
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jparent, michael.vm, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 25607    

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.