Bug 61244

Summary: Undo operations for a web page linger after page is destroyed
Product: WebKit Reporter: John Sullivan <sullivan>
Component: WebKit2Assignee: John Sullivan <sullivan>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch to clear edit commands in WebPageProxy::closePage()
none
Same patch as last time but without Xcode-initiated tweak to project file. darin: review+

Description John Sullivan 2011-05-21 22:37:07 PDT
Page editing commands are registered with an NSUndoManager on Mac (and a similar mechanism on windows), but there’s no code to tell the NSUndoManager that these operations are no longer valid for Undoing once the page has been closed. This can lead to crashes downstream. In Radar as <rdar://problem/9482856>.
Comment 1 John Sullivan 2011-05-21 22:42:09 PDT
Created attachment 94335 [details]
Patch to clear edit commands in WebPageProxy::closePage()
Comment 2 John Sullivan 2011-05-21 22:43:29 PDT
Created attachment 94336 [details]
Same patch as last time but without Xcode-initiated tweak to project file.
Comment 3 John Sullivan 2011-05-22 09:30:27 PDT
Fixed in <http://trac.webkit.org/changeset/87030>.
Comment 4 John Sullivan 2011-05-22 15:30:23 PDT
I accidentally checked into a branch instead of trunk, rolled out in 87045.
Comment 5 John Sullivan 2011-05-22 15:36:21 PDT
Checked into tip of tree in http://trac.webkit.org/changeset/87046