[Webkit-unassigned] [Bug 18205] DOMNode objects are garbage collected although there are strong references
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Apr 5 07:09:18 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18205
------- Comment #13 from darin at apple.com 2008-04-05 07:09 PDT -------
(In reply to comment #11)
> This second test case logs the identity of the parent, but the node, not its
> parent, is the object that's registered as an undo target. I'm not sure why you
> think the parent's wrapper shouldn't be garbage collected.
OK. My mistake. I was confusing the undo with the redo. I see that in the redo
the parent node is part of the invocation. I think there's a good chance here
there's a bug with how NSUndoManager handles extra parameters to more-complex
NSInvocation objects. You might want to try using an approach where there's a
single object that holds references to both the parent and node so you can use
the simpler NSUndoManager code path. I bet that would make the bug go away.
--
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