Bug 94486

Summary: REGRESSION (r121482, Lion-only): Closing a popover containing a WKView can crash
Product: WebKit Reporter: John Sullivan <sullivan>
Component: WebKit2Assignee: John Sullivan <sullivan>
Status: RESOLVED FIXED    
Severity: Major Keywords: InRadar
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: Macintosh Intel   
OS: OS X 10.7   
Attachments:
Description Flags
Patch to avoid a line of recently-added code in the problematic case, only on OS X 10.7 darin: review+

Description John Sullivan 2012-08-20 09:30:44 PDT
<http://trac.webkit.org/changeset/121482> fixed a class of undo-related bugs where undo entries were left on the stack after their target was dealloc’ed. This triggered a Lion-only crash closing an NSPopover that contains a WKView, due to an object lifetime bug in AppKit. This AppKit bug was fixed in OS X 10.8. This bug represents working around that AppKit bug in OS X 10.7.

This is in Radar as <rdar://problem/12128557>.
Comment 1 John Sullivan 2012-08-20 09:38:22 PDT
Created attachment 159453 [details]
Patch to avoid a line of recently-added code in the problematic case, only on OS X 10.7
Comment 2 John Sullivan 2012-08-20 09:54:54 PDT
Fixed in http://trac.webkit.org/changeset/126041