[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 10:25:08 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18205
------- Comment #17 from illenberger at mac.com 2008-04-05 10:25 PDT -------
These crashes are not a theoretical issue for the development of our WebKit
application. We are experiencing lots of undo/redo related crashes with DOM
wrapper objects, like the one in the first test case.
The only workaround I could think of so far to rescue our app is to subclass
the undo manager to enable it to perform a complete collection before its
actions:
@implementation MyUndoManager
- (void)superUndo
{
[super undo];
}
- (void)undo
{
[[NSGarbageCollector defaultCollector] collectExhaustively];
[self performSelector:@selector(superUndo) withObject:nil
afterDelay:0.0];
}
- (void)superRedo
{
[super redo];
}
- (void)redo
{
[[NSGarbageCollector defaultCollector] collectExhaustively];
[self performSelector:@selector(superRedo) withObject:nil
afterDelay:0.0];
}
@end
--
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