[Webkit-unassigned] [Bug 8850] New: cocoa bindings - crash when DOM nodes are deleted while NSTreeController+NSTableView are bound

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu May 11 09:04:11 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8850

           Summary: cocoa bindings - crash when DOM nodes are deleted while
                    NSTreeController+NSTableView are bound
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: speth at end.com


I have a fix for a crash when the DOM structure is manipulated while using
Cocoa bindings.  If there is an NSTreeController bound to the DOM and an
NSTableView bound to the controller, it will crash if the nodes currently
selected in the table view are removed from the DOM.

The NSTreeController needs to be made aware of the DOM changes through the
appropriate KVO mechanisms.  The patch I'm adding does this by listening for
DOM mutation events, and using them to trigger KVO change notifications for the
childNodes attribute of the deleted node's parent.

The test I'm attaching is a manual one using the pyobjc test plugin I've
submitted in bug 8843.  That system is still pretty rough, but does work to
illustrate this crash (and fix).


-- 
Configure bugmail: http://bugzilla.opendarwin.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