[Webkit-unassigned] [Bug 12461] New: Need API to clear WebView's undo actions from undo manager

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 29 11:01:15 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12461

           Summary: Need API to clear WebView's undo actions from undo
                    manager
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jim.correia at pobox.com


Please provide a public API on WebView which let's me clear all undo actions
associated with the web view.

Consider this usage model:

A view controller (not NSViewController based since this code targets 10.4)
inserts a web view into a window. The web view shares the undo manager with
other views in the window (via -windowWillReturnUndoManager:) and is not being
used in bindings mode.

After some user edits, a) the data is committed back to the model object and b)
the view is removed from the window.

After (a) it is desirable to remove the web view's undo actions from the undo
manager.

After (b) it is required that I remove the actions. If I don't, you'll crash
later on when choosing undo. You can reproduce this in the attached sample:

Build/Run.
Type in the web view.
Click "Remove Web View".
Choose "Undo" from the edit menu.

Note: it appears that loading a new string/request into the web view clears the
undo actions today. But The action gets cleared when the load is complete (on a
runloop callback) and by that time it is too late, since I've already removed
the view from the window, and therefore it can no longer locate its undo
manager.


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



More information about the webkit-unassigned mailing list